Skip to content
Snippets Groups Projects
Commit ffa045fb authored by Marek Vavruša's avatar Marek Vavruša
Browse files

Dockerized tests-extra

parent 78144893
No related branches found
No related tags found
2 merge requests!330Knsupdate pubkey processing fix,!328Dockerfiles for Knot DNS & tests
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"
......@@ -37,8 +37,8 @@ the main benefit is that each test runs in an isolated container and can be run
Run tests on the upstream branch:
---------------------------------
$ docker pull cznic/knot-tests-extra # Or build with 'docker build -t knot-tests-extra .'
$ docker run -v $(pwd):/tests cznic/knot-tests-extra basic
$ docker pull cznic/knot:tests-extra # Or build with 'docker build -t tests-extra .'
$ docker run -v $(pwd):/tests cznic/knot:tests-extra basic
Run tests on the local executables:
-----------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment