Dockerfile 590 Bytes
Newer Older
Marek Vavruša's avatar
Marek Vavruša committed
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
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 \
python3 \
python3-pip \
bind9 \
bind9utils \
valgrind \
lsof \
gdb; \
pip3 install dnspython3; \
pip3 install psutil; \
# Prepare the tests
mkdir /tests; \
# Link the tested executables
mkdir /src; \
ln -sfn /usr/local/sbin/knotd /src/knotd; \
ln -sfn /usr/local/bin/knotc /src/knotc; \
# Trim down the image
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*

# Select entrypoint
WORKDIR /tests 
ENTRYPOINT "/tests/runtests.py"