-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitpod.Dockerfile
120 lines (111 loc) · 3.47 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
FROM gitpod/workspace-base as base
USER gitpod
RUN echo "deb http://security.ubuntu.com/ubuntu bionic main" >> /etc/apt/sources.list && \
apt-get update -y && apt-get install -y --allow-downgrades \
# common stuff
git \
wget \
apt-transport-https \
ca-certificates \
apt-utils \
nano \
software-properties-common \
supervisor \
# Python
python3-pip \
python3-nacl \
# rocksdb python wrapper
rocksdb-tools \
librocksdb5.17 \
librocksdb-dev \
libsnappy-dev \
liblz4-dev \
libbz2-dev
RUN sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu bionic-security main" && \
sudo apt-get update -y && sudo apt-get install -y \
libssl1.0.0 \
libssl1.1
# Indy Node and Plenum
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 &&\
sudo add-apt-repository "deb https://repo.sovrin.org/deb bionic master" &&\
sudo apt-get update && sudo apt-get install -y \
ursa
# install fpm
ENV FPM_VERSION=1.14.2
ENV DOTENV_VERSION=2.8.1
RUN sudo apt-get update -y && sudo apt-get install -y \
ruby \
ruby-dev \
rubygems \
&& gem install --no-document rake dotenv:$DOTENV_VERSION fpm:$FPM_VERSION
# Need to move libursa.so to parent dir
RUN sudo mv /usr/lib/ursa/* /usr/lib && sudo rm -rf /usr/lib/ursa
# Indy SDK
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 && \
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9692C00E657DDE61 && \
sudo add-apt-repository "deb https://hyperledger.jfrog.io/artifactory/indy focal dev rc" && \
sudo add-apt-repository "deb https://repo.sovrin.org/deb xenial master" && \
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial master" && \
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic master" && \
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial universe main" && \
sudo apt-get update -y && sudo apt-get install -y && \
libindy=1.15.0~1625-bionic \
libsodium23
ENV PATH "$PATH:/home/gitpod/.local/bin"
# pypi based packages
RUN pip3 install -U --user\
Cython==0.29.36 \
Pygments==2.2.0 \
Pympler==0.8 \
PyNaCl==1.3.0 \
apipkg==1.5 \
attrs==20.3.0 \
base58==2.1.0 \
distro==1.5.0 \
execnet==1.8.0 \
flake8==3.8.4 \
iniconfig==1.1.1 \
intervaltree==2.1.0 \
ioflo==2.0.2 \
jsonpickle==2.0.0 \
leveldb==0.201 \
libnacl==1.7.2 \
mccabe==0.6.1 \
msgpack-python==0.5.6 \
orderedset==2.0.3 \
packaging==20.9 \
pip==9.0.3 \
pluggy==0.13.1 \
portalocker==2.2.1 \
prompt-toolkit==3.0.16 \
psutil==5.6.6 \
py==1.10.0 \
pycodestyle==2.6.0 \
pyflakes==2.2.0 \
pyparsing==2.4.7 \
pytest==6.2.2 \
pytest-asyncio==0.14.0 \
pytest-forked==1.3.0 \
pytest-runner==5.3.0 \
pytest-xdist==2.2.1 \
python-dateutil==2.6.1 \
python-rocksdb==0.7.0 \
python-ursa==0.1.1 \
python3-indy==1.16.0.post286 \
pyzmq==18.1.0 \
rlp==0.6.0 \
semver \
setuptools==53.0.0 \
sha3==0.2.1 \
six==1.15.0 \
sortedcontainers==1.5.7 \
timeout-decorator==0.5.0 \
toml==0.10.2 \
ujson==1.33 \
wcwidth==0.2.5 \
wheel==0.34.2 \
zipp==1.2.0 \
mock
COPY ./deps .
RUN sudo dpkg -i libsovtoken_1.0.2_amd64.deb
RUN sudo mkdir -p /etc/indy && sudo touch /etc/indy/indy_config.py && sudo sh -c "echo \"ENABLED_PLUGINS = ['sovtoken', 'sovtokenfees']\" > /etc/indy/indy_config.py"