add openssl and nsd-control-setup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jochen Welzel 2020-04-20 15:03:25 +02:00
parent 0633502c7f
commit 729494e58f
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@ FROM alpine:latest
MAINTAINER Jochen Welzel
RUN apk update && apk upgrade && apk add bash && apk add nsd
RUN apk update && apk upgrade && apk add bash && apk add openssl && apk add nsd
RUN mkdir -p /var/db/nsd/zones/master && mkdir /var/db/nsd/zones/slave && mkdir /var/run/nsd
COPY nsd.conf.example /tmp
COPY entrypoint.sh /

View File

@ -4,6 +4,9 @@ set -e
if [ ! -f "/etc/nsd/nsd.conf" ]; then
cp /tmp/nsd.conf.example /etc/nsd/nsd.conf
fi
if [ ! -f "/etc/nsd/nsd_control.pem" ]; then
nsd-control-setup
fi
exec nsd -d