From b2edd1630836be0a323313880c825f4fb742c505 Mon Sep 17 00:00:00 2001 From: Stephane Gourichon Date: Sat, 23 Mar 2024 13:12:55 +0100 Subject: [PATCH] Docker container for DNS server bind9. --- .../software_nameserver_debian_bind9/Dockerfile | 13 +++++++++++++ .../software_nameserver_debian_bind9/build.sh | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile create mode 100644 public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh diff --git a/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile new file mode 100644 index 0000000..a946bec --- /dev/null +++ b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:stable-slim +MAINTAINER Stéphane Gourichon + +RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get upgrade +RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9 + +COPY named.conf.local /etc/bind/ +COPY sites /etc/bind/sites + +RUN chown bind:bind -Rc /etc/bind/named.conf.local /etc/bind/sites && chmod =0,u=rX -Rc /etc/bind/named.conf.local /etc/bind/sites + +EXPOSE 53 +ENTRYPOINT ["/usr/sbin/named", "-g", "-u", "bind" ] diff --git a/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh new file mode 100644 index 0000000..e07408f --- /dev/null +++ b/public_services/gourichon_org/domain/software_nameserver_debian_bind9/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd -P "$(dirname "$(readlink -f "$0")" )" + +docker build -t gouri_infra:net_dns -f $PWD/Dockerfile $PWD/../../../../../andre_etckeeper_history/etc/bind