-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile.node
55 lines (41 loc) · 1.92 KB
/
Dockerfile.node
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
FROM fauust/docker-systemd:ubuntu-20.04
ARG DEBIAN_FRONTEND=noninteractive
ARG uid=1000
ARG user=indy
RUN apt-get update -y && apt-get install -y \
apt-utils\
git\
ca-certificates \
ssh\
gnupg \
apt-transport-https
# Bionic-security-main for libssl1.0.0
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 \
&& echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list
# sovrin repo
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \
&& echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list
# Hyperledger Artifactory
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 \
&& echo "deb https://hyperledger.jfrog.io/artifactory/indy focal dev rc stable" >> /etc/apt/sources.list \
&& printf '%s\n%s\n%s\n' 'Package: *' 'Pin: origin hyperledger.jfrog.io' 'Pin-Priority: 1001' >> /etc/apt/preferences
# Sovrin Artifactory
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3BC8C2DD662F1C45 \
&& echo "deb https://sovrin.jfrog.io/artifactory/deb focal dev rc stable" >> /etc/apt/sources.list
COPY * /
ARG PACKAGE
RUN if [ ! -z ${PACKAGE} ]; then echo "downloading ${PACKAGE}"; apt update && apt download ${PACKAGE}; fi
ARG EXTENTION_DEB
RUN : ${EXTENTION_DEB:?"EXTENTION_DEB must be provided"}
RUN EXTENTION_DEB=${EXTENTION_DEB} bash installDeps.sh
# network config
RUN echo " " >> /etc/indy/indy_config.py \
&& echo "NETWORK_NAME = 'sandbox'" >> /etc/indy/indy_config.py \
&& echo " " >> /etc/indy/indy_config.py \
&& echo "logLevel = 0" >> /etc/indy/indy_config.py \
&& echo " " >> /etc/indy/indy_config.py
# Server side ssh configuration
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
COPY test_key.pub /root/.ssh/authorized_keys
RUN chmod 700 /root/.ssh && \
chmod 600 /root/.ssh/authorized_keys