diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 000000000..fe03e2603 --- /dev/null +++ b/.gitpod.Dockerfile @@ -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 diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..6015df5c9 --- /dev/null +++ b/.gitpod.yml @@ -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" ] \ No newline at end of file diff --git a/README.md b/README.md index 043fc632c..438b3dcf3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ ![logo](collateral/logos/indy-logo.png) + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/pschlarb/indy-node/tree/Gitpod) # Indy Node * [About Indy Node](#about-indy-node) * [Technical Overview of Indy Blockchain](#technical-overview-of-indy-blockchain)