Make a symlink between /etc/pdns and /etc/powerdns
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7348d2b05f
commit
c67f43c7a5
@ -18,7 +18,8 @@ RUN apk add --no-cache \
|
|||||||
|
|
||||||
# Start script
|
# Start script
|
||||||
COPY --from=git /data/dockerdata/startup.py /usr/sbin/pdns_server-startup
|
COPY --from=git /data/dockerdata/startup.py /usr/sbin/pdns_server-startup
|
||||||
RUN sed -i "s@env -S python3 -u@env python3@" /usr/sbin/pdns_server-startup
|
COPY --from=git /data/dockerdata/pdns.conf /etc/pdns/pdns.conf
|
||||||
|
RUN sed -i "s@env -S python3 -u@env python3@" /usr/sbin/pdns_server-startup && ln -s /etc/pdns /etc/powerdns
|
||||||
|
|
||||||
COPY --from=git /data/dockerdata/pdns.conf /etc/powerdns/
|
COPY --from=git /data/dockerdata/pdns.conf /etc/powerdns/
|
||||||
RUN mkdir -p /etc/powerdns/pdns.d /var/run/pdns /var/lib/powerdns /etc/powerdns/templates.d
|
RUN mkdir -p /etc/powerdns/pdns.d /var/run/pdns /var/lib/powerdns /etc/powerdns/templates.d
|
||||||
@ -30,8 +31,6 @@ USER pdns
|
|||||||
# Set up database - this needs to be smarter
|
# Set up database - this needs to be smarter
|
||||||
RUN sqlite3 /var/lib/powerdns/pdns.sqlite3 < /usr/share/doc/pdns/schema.sqlite3.sql
|
RUN sqlite3 /var/lib/powerdns/pdns.sqlite3 < /usr/share/doc/pdns/schema.sqlite3.sql
|
||||||
|
|
||||||
COPY sqlite-backend.conf /etc/powerdns/pdns.d
|
|
||||||
|
|
||||||
# Default DNS ports
|
# Default DNS ports
|
||||||
EXPOSE 53/udp
|
EXPOSE 53/udp
|
||||||
EXPOSE 53/tcp
|
EXPOSE 53/tcp
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
launch=gsqlite3
|
|
||||||
gsqlite3-database=/var/lib/powerdns/pdns.sqlite3
|
|
Loading…
Reference in New Issue
Block a user