-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode Devcontainer #1718
Merged
WadeBarnes
merged 3 commits into
hyperledger:ubuntu-20.04-upgrade
from
pSchlarb:Devcontainer-VSCODE
Jan 18, 2022
Merged
VSCode Devcontainer #1718
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/ubuntu/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Ubuntu version (use hirsuite or bionic on local arm64/Apple Silicon): hirsute, focal, bionic | ||
ARG VARIANT="focal" | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# common stuff | ||
git \ | ||
wget \ | ||
gnupg \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
apt-utils \ | ||
curl \ | ||
jq | ||
|
||
# ======================================================================================================== | ||
# Update repository signing keys | ||
# -------------------------------------------------------------------------------------------------------- | ||
# Hyperledger | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \ | ||
# Sovrin | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 | ||
# ======================================================================================================== | ||
|
||
# Plenum | ||
# - https://github.com/hyperledger/indy-plenum/issues/1546 | ||
# - Needed to pick up rocksdb=5.8.8 | ||
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy focal dev" >> /etc/apt/sources.list && \ | ||
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list && \ | ||
echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list && \ | ||
echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# Python | ||
python3-pip \ | ||
python3-nacl \ | ||
# rocksdb python wrapper | ||
rocksdb=5.8.8 \ | ||
libgflags-dev \ | ||
libsnappy-dev \ | ||
zlib1g-dev \ | ||
libbz2-dev \ | ||
liblz4-dev \ | ||
libgflags-dev \ | ||
# zstd is needed for caching in github actions pipeline | ||
zstd \ | ||
# fpm | ||
ruby \ | ||
ruby-dev \ | ||
rubygems \ | ||
gcc \ | ||
make \ | ||
# Indy Node and Plenum | ||
libssl1.0.0 \ | ||
ursa=0.3.2-2 \ | ||
WadeBarnes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Indy SDK | ||
libindy=1.15.0~1625-bionic \ | ||
# Need to move libursa.so to parent dir | ||
&& mv /usr/lib/ursa/* /usr/lib && rm -rf /usr/lib/ursa | ||
|
||
RUN pip3 install -U \ | ||
# Required by setup.py | ||
setuptools==50.3.2 \ | ||
# Still pinned. Needs to be updated like in plenum | ||
'pip<10.0.0' \ | ||
'pyzmq==18.1.0' | ||
|
||
|
||
# install fpm | ||
RUN gem install --no-document rake | ||
RUN gem install --no-document fpm -v 1.13.1 | ||
|
||
RUN apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,31 @@ | ||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/ubuntu | ||||||
{ | ||||||
"name": "Ubuntu", | ||||||
"build": { | ||||||
"dockerfile": "Dockerfile", | ||||||
// Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic | ||||||
// Use hirsute or bionic on local arm64/Apple Silicon. | ||||||
"args": { "VARIANT": "focal" } | ||||||
}, | ||||||
|
||||||
// Set *default* container specific settings.json values on container create. | ||||||
"settings": {}, | ||||||
|
||||||
|
||||||
// Add the IDs of extensions you want installed when the container is created. | ||||||
"extensions": [ | ||||||
"mhutchie.git-graph", | ||||||
"eamodio.gitlens", | ||||||
"ms-python.python" | ||||||
], | ||||||
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||||||
// "forwardPorts": [], | ||||||
|
||||||
// Use 'postCreateCommand' to run commands after the container is created. | ||||||
"postCreateCommand": "pip install .[tests]", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Install |
||||||
|
||||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||||||
//"remoteUser": "vscode" | ||||||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the latest version of rocksdb? v6.25.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the comment from line 28, the issue with plenum. Thanks. I understand the reason for version 5.8.8 now.