-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile.ubuntu20
55 lines (42 loc) · 1.82 KB
/
Dockerfile.ubuntu20
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
# This container is to run indy-node.
# This file is part of https://github.com/hyperledger/indy-node-container .
# Copyright 2021-2022 by all people listed in https://github.com/hyperledger/indy-node-container/blob/main/NOTICE , see
# https://github.com/hyperledger/indy-node-container/blob/main/LICENSE for the license information.
#
# author: Robin Klemens <[email protected]>
FROM ubuntu:20.04
RUN apt-get update -y && apt-get install -y \
apt-transport-https \
ca-certificates \
gnupg2 \
## ToDo remove unused packages
libgflags-dev \
libsnappy-dev \
zlib1g-dev \
libbz2-dev \
liblz4-dev \
libgflags-dev \
python3-pip
# Bionic-security for libssl1.0.0
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3B4FE6ACC0B21F32 \
&& echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list
# Sovrin
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CE7709D068DB5E88 \
&& bash -c 'echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list'
# Hyperledger Artifactory
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9692C00E657DDE61 \
&& echo "deb https://hyperledger.jfrog.io/artifactory/indy focal stable" >> /etc/apt/sources.list \
# Prioritize packages from hyperledger.jfrog.io
&& printf '%s\n%s\n%s\n' 'Package: *' 'Pin: origin hyperledger.jfrog.io' 'Pin-Priority: 1001' >> /etc/apt/preferences
RUN pip3 install -U \
# Required by setup.py
'setuptools==50.3.2'
RUN apt-get update -y && apt-get install -y \
indy-node="1.13.2" \
&& rm -rf /var/lib/apt/lists/* \
# fix path to libursa
&& ln -s /usr/lib/ursa/libursa.so /usr/lib/libursa.so
WORKDIR /home/indy
COPY init_and_run.sh ./
CMD ["./init_and_run.sh"]
VOLUME ["/var/log/indy"]