-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1722 from pSchlarb/Gitpod
Gitpod DevContainer
- Loading branch information
Showing
3 changed files
with
102 additions
and
0 deletions.
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,74 @@ | ||
FROM gitpod/workspace-full as base | ||
|
||
USER gitpod | ||
|
||
|
||
RUN sudo apt-get update -y && sudo apt-get install -y \ | ||
# common stuff | ||
git \ | ||
wget \ | ||
gnupg \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
apt-utils \ | ||
curl \ | ||
jq | ||
|
||
# ======================================================================================================== | ||
# Update repository signing keys | ||
# -------------------------------------------------------------------------------------------------------- | ||
# Hyperledger | ||
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \ | ||
# Sovrin | ||
sudo 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 sudo add-apt-repository 'deb https://hyperledger.jfrog.io/artifactory/indy focal dev' && \ | ||
sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu bionic-security main' && \ | ||
sudo add-apt-repository 'deb https://repo.sovrin.org/deb bionic master' && \ | ||
sudo add-apt-repository 'deb https://repo.sovrin.org/sdk/deb bionic master' | ||
|
||
|
||
|
||
RUN sudo apt-get update -y && sudo 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-1 \ | ||
# Indy SDK | ||
libindy=1.15.0~1625-bionic \ | ||
# Need to move libursa.so to parent dir | ||
&& sudo mv /usr/lib/ursa/* /usr/lib && sudo 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 sudo gem install --no-document rake | ||
RUN sudo gem install --no-document fpm -v 1.13.1 |
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,26 @@ | ||
image: | ||
file: .gitpod.Dockerfile | ||
|
||
tasks: | ||
- name: Pip installs | ||
init: pip install .[tests] | ||
|
||
github: | ||
prebuilds: | ||
# enable for the master/default branch (defaults to true) | ||
master: false | ||
# enable for all branches in this repo (defaults to false) | ||
branches: false | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: false | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: false | ||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true) | ||
addComment: false | ||
# add a "Review in Gitpod" button to pull requests (defaults to false) | ||
addBadge: false | ||
# add a label once the prebuild is ready to pull requests (defaults to false) | ||
addLabel: false | ||
|
||
vscode: | ||
extensions: ["mhutchie.git-graph", "eamodio.gitlens","ms-python.python" ] |
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