11ARG VARIANT="focal"
22FROM mcr.microsoft.com/vscode/devcontainers/base:${VARIANT}
33
4- RUN apt-get update -y \
5- && echo "deb http://security.ubuntu.com/ubuntu bionic main" >> /etc/apt/sources.list \
6- && apt-get install -y --allow-downgrades \
4+ RUN echo "deb http://security.ubuntu.com/ubuntu bionic main" >> /etc/apt/sources.list && \
5+ apt-get update -y && apt-get install -y --allow-downgrades \
76 # common stuff
87 git \
98 wget \
@@ -12,7 +11,7 @@ RUN apt-get update -y \
1211 apt-utils \
1312 nano \
1413 software-properties-common \
15- supervisor \
14+ supervisor \
1615 # Python
1716 python3-pip \
1817 python3-nacl \
@@ -23,50 +22,44 @@ RUN apt-get update -y \
2322 libsnappy-dev \
2423 liblz4-dev \
2524 libbz2-dev \
26- docker-compose \
27- && rm -rf /var/lib/apt/lists/*
28-
29- # fails when executed in one command with other pip install packages
30- # RUN pip install python-rocksdb
25+ docker-compose
3126
3227RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list && \
33- apt-get update && apt-get install -y \
28+ apt-get update -y && apt-get install -y \
3429 libssl1.0.0 \
3530 libssl1.1
3631# Indy Node and Plenum
3732RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \
3833 && echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list \
39- && apt-get update && apt-get install -y \
34+ && apt-get update && apt-get install -y \
4035 ursa
4136# install fpm
42- ENV FPM_VERSION=1.9.3
43- RUN apt-get update \
44- && apt-add-repository ppa:brightbox/ruby-ng \
45- && apt-get install -y --no-install-recommends \
46- ruby2.6 \
47- ruby2.6-dev \
48- && gem install --no-document rake fpm:$FPM_VERSION \
49- && rm -rf /var/lib/apt/lists/*
37+ ENV FPM_VERSION=1.14.2
38+ ENV DOTENV_VERSION=2.8.1
39+ RUN apt-get update -y && apt-get install -y \
40+ ruby \
41+ ruby-dev \
42+ rubygems \
43+ && gem install --no-document rake dotenv:$DOTENV_VERSION fpm:$FPM_VERSION
5044
5145# Need to move libursa.so to parent dir
5246RUN mv /usr/lib/ursa/* /usr/lib && rm -rf /usr/lib/ursa
5347
5448# Indy SDK
55- # RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 || \
56- # apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CE7709D068DB5E88 && \
57- RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 \
58- && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9692C00E657DDE61 \
59- && echo "deb https://hyperledger.jfrog.io/artifactory/indy focal dev rc" >> /etc/apt/sources.list \
60- && echo "deb https://repo.sovrin.org/sdk/deb xenial master" >> /etc/apt/sources.list \
61- && echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list \
62- && echo "deb http://archive.ubuntu.com/ubuntu xenial universe main" >> /etc/apt/sources.list \
63- && echo "deb https://repo.sovrin.org/deb xenial master" >> /etc/apt/sources.list \
64- && apt-get update -y && apt-get install -y \
49+ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 \
50+ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9692C00E657DDE61 \
51+ && add-apt-repository "deb https://hyperledger.jfrog.io/artifactory/indy focal dev" \
52+ && add-apt-repository "deb https://repo.sovrin.org/deb xenial master" \
53+ && add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial master" \
54+ && add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic master" \
55+ && add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial universe main" \
56+ && apt-get update -y && apt-get install -y \
6557 libindy=1.15.0~1625-bionic \
6658 libsodium23
6759
6860# pypi based packages
69- RUN pip3 install -U \
61+ RUN pip3 install -U \
62+ Cython==0.29.36 \
7063 Pygments==2.2.0 \
7164 Pympler==0.8 \
7265 PyNaCl==1.3.0 \
@@ -106,7 +99,7 @@ RUN pip3 install -U \
10699 python3-indy==1.15.0-dev-1625 \
107100 pyzmq==18.1.0 \
108101 rlp==0.6.0 \
109- semver==2.13.0 \
102+ semver \
110103 setuptools==53.0.0 \
111104 sha3==0.2.1 \
112105 six==1.15.0 \
@@ -118,10 +111,8 @@ RUN pip3 install -U \
118111 wheel==0.34.2 \
119112 zipp==1.2.0 \
120113 mock
121- # virtualenv \
122- # python-rocksdb==0.7
123114
124115RUN mkdir -p /etc/indy && echo "ENABLED_PLUGINS = ['sovtoken', 'sovtokenfees']" > /etc/indy/indy_config.py
125116
126117RUN apt-get -y autoremove
127-
118+ RUN rm -rf /var/lib/apt/lists/*
0 commit comments