aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 7b6aed888093ad2a81014eb324bb115243ecf9a9 (plain) (blame)
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
# Given that this is security software, you might want to consider
# generating your own debian:stretch base image using debbootstrap
# rather than trusting Dockerhub

FROM debian:stretch

# Prerequisites.  Current version of python-django is a bit too recent
# for the rpki-ca GUI, but rpki-rp only uses the ORM, which hasn't
# broken backwards compatability (yet?).

RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
    apache2 \
    bsdmainutils \
    ca-certificates \
    cron \
    postgresql \
    postgresql-client \
    python \
    python-django \
    python-lxml \
    python-psycopg2 \
    python-pycurl \
    python-tornado \
    rrdtool \
    rsyslog \
    rsync \
    ssl-cert \
    sudo \
    xinetd

# Install rpki-rp package downloaded by makefile, but defer
# configuration until the container comes up.

COPY startup.sh rpki-rp_*.deb /root/
RUN  dpkg --unpack /root/rpki-rp_*.deb &&  rm -f /root/rpki-rp_*.deb

# Container startup, execs cron on top of itself when done

CMD [ "/root/startup.sh" ]

# Expose web and rpki-rtr ports.  The HTTPS port is probably not very
# useful unless you stuff a valid certificate into the image.

EXPOSE 80 443 323