Skip to content
Snippets Groups Projects
Commit 04129e0a authored by nimrod's avatar nimrod
Browse files

Use the czin/knots image as base (uses Alpine Linux).

parent 9491aa50
No related branches found
No related tags found
No related merge requests found
.git/
README*
*.swp
FROM debian:stretch-slim FROM cznic/knot-resolver
ENV DEBIAN_FRONTEND noninteractive RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
RUN apt-get update && \ apk add --update \
apt-get install -y knot-dnsutils knot-host knot-resolver dma bsd-mailx && \ dma@testing \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* iproute2 \
COPY entrypoint.sh /entrypoint.sh knot-utils \
ENTRYPOINT ["/entrypoint.sh"] mailx \
CMD ["/bin/bash", "--login"] mtr \
&& \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
COPY entrypoint /entrypoint
ENTRYPOINT [ "/entrypoint" ]
CMD [ "bash", "--login" ]
...@@ -5,5 +5,4 @@ https://www.shore.co.il/blog/resolver/. ...@@ -5,5 +5,4 @@ https://www.shore.co.il/blog/resolver/.
## Usage ## Usage
docker pull adarnimrod/resolver
docker run -it adarnimrod/resolver docker run -it adarnimrod/resolver
#!/bin/sh #!/bin/sh
set -eu set -eu
service kresd start echo "net = { '127.0.0.1', '::1'}" | nohup kresd -f1 &
echo 'nameserver 127.0.0.1' > /etc/resolv.conf echo 'nameserver 127.0.0.1' > /etc/resolv.conf
eval "exec $@" eval "exec $@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment