diff options
author | Mike Crute <mike@crute.us> | 2019-12-10 22:03:28 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-12-10 22:07:18 +0000 |
commit | 34306c78d76fe0cc0885f528f37e100352e426d6 (patch) | |
tree | 5252cf3d39de2ea5818aeff45cb0933ea4c94660 /bind/Dockerfile | |
parent | 6dbd14383a3a3c784cabf4efa2dd423dfc042926 (diff) | |
download | dockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.tar.bz2 dockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.tar.xz dockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.zip |
bind: Consolidate configuration files
Add DNS master/slave support to container so that slaves don't require
any additional configuration outside of their environment.
Pull common master/slave configuration into the base container.
Diffstat (limited to 'bind/Dockerfile')
-rw-r--r-- | bind/Dockerfile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/bind/Dockerfile b/bind/Dockerfile index 864a64e..23e731f 100644 --- a/bind/Dockerfile +++ b/bind/Dockerfile | |||
@@ -1,7 +1,23 @@ | |||
1 | FROM alpine:edge | 1 | FROM alpine:edge |
2 | LABEL maintainer="Mike Crute <mike@crute.us>" | 2 | LABEL maintainer="Mike Crute <mike@crute.us>" |
3 | 3 | ||
4 | RUN \ | 4 | RUN set -euxo pipefail; \ |
5 | apk add --no-cache bind bind-tools | 5 | apk add --no-cache \ |
6 | bind \ | ||
7 | bind-tools \ | ||
8 | gettext \ | ||
9 | ; \ | ||
10 | rm -rf /etc/bind/*; \ | ||
11 | mkdir -p /etc/bind/local; \ | ||
12 | ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \ | ||
13 | \ | ||
14 | curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache; | ||
6 | 15 | ||
16 | ADD entrypoint.sh / | ||
17 | ADD conf/ /etc/bind/ | ||
18 | |||
19 | RUN set -euxo pipefail; \ | ||
20 | chown -R named:named /etc/bind; | ||
21 | |||
22 | ENTRYPOINT [ "/entrypoint.sh" ] | ||
7 | CMD [ "/usr/sbin/named", "-u", "named", "-g" ] | 23 | CMD [ "/usr/sbin/named", "-u", "named", "-g" ] |