Dockerfile 580 Bytes
Newer Older
Marek Vavruša's avatar
Marek Vavruša committed
1 2 3 4 5 6
FROM cznic/knot:latest
MAINTAINER Marek Vavrusa <marek.vavrusa@nic.cz>

# Install dependencies and sources 
RUN apt-get -q -y update; \
apt-get install -q -y \
7
gawk \
Marek Vavruša's avatar
Marek Vavruša committed
8 9 10 11 12 13 14 15 16
python3 \
python3-pip \
bind9 \
bind9utils \
valgrind \
lsof \
gdb; \
pip3 install dnspython3; \
pip3 install psutil; \
17 18
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*

Marek Vavruša's avatar
Marek Vavruša committed
19
# Prepare the tests
20
RUN mkdir /tests; \
Marek Vavruša's avatar
Marek Vavruša committed
21 22 23
# Link the tested executables
mkdir /src; \
ln -sfn /usr/local/sbin/knotd /src/knotd; \
Marek Vavruša's avatar
Marek Vavruša committed
24
ln -sfn /usr/local/sbin/knotc /src/knotc
Marek Vavruša's avatar
Marek Vavruša committed
25 26 27

# Select entrypoint
WORKDIR /tests 
28
ENTRYPOINT ["/tests/runtests.py"]