pkg: add Unbound

This commit is contained in:
nemunaire 2018-02-19 21:35:08 +01:00 committed by nemunaire
parent 43d1f56e71
commit 79f135a040
3 changed files with 29 additions and 0 deletions

15
pkg/unbound/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alpine:3.7
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
RUN apk add --no-cache unbound
COPY docker-entrypoint.sh /
VOLUME /etc/unbound
EXPOSE 53
EXPOSE 53/udp
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/unbound", "-d"]
LABEL org.mobyproject.config='{"binds": ["/etc/resolv.conf:/etc/resolv.conf"], "capabilities": ["CAP_NET_BIND_SERVICE"]}'

1
pkg/unbound/build.yml Normal file
View File

@ -0,0 +1 @@
image: unbound

View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ `which unbound-$1 2>/dev/null` ]; then
set -- unbound-"$@"
elif [ ! `which $1 2>/dev/null` ]; then
set -- unbound -dv "$@"
fi
unbound-anchor
exec "$@"