-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathContainerfile
More file actions
36 lines (32 loc) · 1.2 KB
/
Containerfile
File metadata and controls
36 lines (32 loc) · 1.2 KB
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
# Container description file for running kartograf
FROM python:3.13
ARG RPKI_VERSION=9.7
# Download and install rpki-client from source
RUN set -x && \
apt-get update && \
apt-get -y install libtls-dev rsync && \
wget "https://github.com/rpki-client/rpki-client-portable/releases/download/${RPKI_VERSION}/rpki-client-${RPKI_VERSION}.tar.gz" && \
tar xfz "rpki-client-${RPKI_VERSION}.tar.gz" && \
cd "rpki-client-${RPKI_VERSION}/"; \
./configure \
--prefix=/usr \
--with-user=rpki-client \
--with-tal-dir=/etc/tals \
--with-base-dir=/var/cache/rpki-client \
--with-output-dir=/var/lib/rpki-client && \
make V=1 && \
addgroup --system --gid 900 rpki-client && \
adduser --system --home /var/lib/rpki-client --gid 900 rpki-client && \
make install && \
adduser --uid 1000 user && \
mkdir /data /out && \
chown user /data /out
# Install kartograf's Python dependencies
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
USER user
# Copy over Python module
# We intentionally don't copy over `run` here, because the name "run" is created as a directory by podman.
COPY kartograf kartograf
# Define entry point
ENTRYPOINT ["python3", "-m", "kartograf.cli"]