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

updated Dockerfile

parent f6e9b1cd
No related branches found
No related tags found
2 merge requests!330Knsupdate pubkey processing fix,!328Dockerfiles for Knot DNS & tests
......@@ -2,7 +2,7 @@ FROM debian:jessie
MAINTAINER Marek Vavrusa <marek.vavrusa@nic.cz>
# Nprocs
ENV THREADS 2
ENV THREADS 4
# Install dependencies and sources
RUN apt-get -y update; \
......@@ -27,8 +27,7 @@ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /src
# Select entrypoint
WORKDIR /root
ENTRYPOINT "/usr/local/sbin/knotd"
CMD ["--help"]
CMD ["/usr/local/sbin/knotd"]
# Expose port
EXPOSE 53
......@@ -27,3 +27,23 @@ Allow ptrace:
or
change file /etc/sysctl.d/10-ptrace.conf
kernel.yama.ptrace_scope = 0
Running in docker container:
----------------------------
There is a Dockerfile that can be used to build containers with the tests-extra,
the main benefit is that each test runs in an isolated container and can be run in parallel.
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
Run tests on the local executables:
-----------------------------------
You can bind-mount the /src with the current working copy.
$ docker run -v $(pwd)../src:/src $(pwd):/tests cznic/knot-tests-extra basic
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