mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

/etc/init.d/bind9 is run as the 'bind' user. This fixes file permissions for the configuration files added by the Dockerfile to match.
20 lines
474 B
Docker
20 lines
474 B
Docker
FROM golang:1.9.1-stretch
|
|
LABEL Description="Image for etcd DNS SRV testing"
|
|
|
|
RUN apt update -y \
|
|
&& apt install -y -q \
|
|
bind9 \
|
|
dnsutils
|
|
|
|
RUN mkdir -p /var/bind /etc/bind
|
|
RUN chown root:bind /var/bind /etc/bind
|
|
ADD Procfile /Procfile
|
|
ADD run.sh /run.sh
|
|
|
|
ADD named.conf etcd.zone rdns.zone /etc/bind/
|
|
RUN chown root:bind /etc/bind/named.conf /etc/bind/etcd.zone /etc/bind/rdns.zone
|
|
ADD resolv.conf /etc/resolv.conf
|
|
|
|
RUN go get github.com/mattn/goreman
|
|
CMD ["/run.sh"]
|