-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
66 lines (65 loc) · 1.57 KB
/
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
FROM ubuntu:23.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install -y \
libhttp-daemon-perl \
liblist-moreutils-perl \
libwww-perl \
libcarp-always-perl \
libconvert-asn1-perl \
libclass-accessor-perl \
libssl-dev \
libyaml-perl \
libxml-libxml-perl \
libio-capture-perl \
libnet-ip-perl \
make \
wget \
patch \
gcc \
rsync \
libfile-slurp-perl \
libjson-xs-perl \
cpanminus \
jq \
vim \
git \
libdatetime-perl \
libtls26 \
libtls-dev \
libdigest-sha-perl \
libexpat1-dev \
sudo
RUN cpanm Set::IntSpan Net::CIDR::Set
RUN wget https://ftp.openssl.org/source/openssl-1.0.2p.tar.gz \
&& tar xf openssl-1.0.2p.tar.gz \
&& cd openssl-1.0.2p \
&& ./config enable-rfc3779 \
&& make \
&& make install
RUN yes | unminimize
RUN addgroup \
--gid 2000 \
rpki-client && \
adduser \
--home /var/lib/rpki-client \
--disabled-password \
--gid 2000 \
--uid 2000 \
rpki-client
RUN wget https://ftp.openbsd.org/pub/OpenBSD/rpki-client/rpki-client-7.8.tar.gz \
&& tar xf rpki-client-7.8.tar.gz \
&& cd rpki-client-7.8 \
&& ./configure --with-user=rpki-client \
&& make \
&& make install \
&& cd ..
RUN git clone https://github.com/kristapsdz/openrsync.git \
&& cd openrsync \
&& ./configure \
&& make \
&& make install \
&& cd ..
COPY . /root/rpki-signed-tal-demo
RUN cd /root/rpki-signed-tal-demo/ && perl Makefile.PL && make && make test && make install
RUN rm -rf /root/rpki-signed-tal-demo/