pkg: add Unbound
This commit is contained in:
parent
43d1f56e71
commit
79f135a040
15
pkg/unbound/Dockerfile
Normal file
15
pkg/unbound/Dockerfile
Normal 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
1
pkg/unbound/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: unbound
|
13
pkg/unbound/docker-entrypoint.sh
Executable file
13
pkg/unbound/docker-entrypoint.sh
Executable 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 "$@"
|
Reference in New Issue
Block a user