Skip to content

Commit

Permalink
Updated PDNS to 4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dodancs committed Aug 3, 2024
1 parent 424ac93 commit 7b4dd96
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM alpine:edge as build-stage
FROM alpine:edge AS build-stage

# Install envtpl
ENV PATH "/opt/venv/bin:$PATH"
ENV PATH="/opt/venv/bin:$PATH"
RUN apk add \
python3=3.12.3-r1 \
python3 \
binutils \
libffi-dev \
&& python3 -m venv /opt/venv \
Expand All @@ -16,10 +16,10 @@ COPY --from=build-stage --chown=root:root /dist/envtpl /usr/local/bin/

RUN apk add --no-cache \
mariadb-client \
pdns=4.9.0-r3 \
pdns-backend-mysql=4.9.0-r3 \
pdns-backend-pgsql=4.9.0-r3 \
pdns-doc=4.9.0-r3
pdns=4.9.1-r0 \
pdns-backend-mysql=4.9.1-r0 \
pdns-backend-pgsql=4.9.1-r0 \
pdns-doc=4.9.1-r0

ENV VERSION=4.9 \
PDNS_guardian=yes \
Expand All @@ -33,6 +33,10 @@ COPY pdns.conf.tpl /
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh

# Fix DB schema
RUN sed -i 's/CREATE TABLE/CREATE TABLE IF NOT EXISTS/g ; s/CREATE UNIQUE INDEX/CREATE UNIQUE INDEX IF NOT EXISTS/g ; s/CREATE INDEX/CREATE INDEX IF NOT EXISTS/g' /usr/share/doc/pdns/schema.mysql.sql \
&& sed -i 's/CREATE TABLE/CREATE TABLE IF NOT EXISTS/g ; s/CREATE UNIQUE INDEX/CREATE UNIQUE INDEX IF NOT EXISTS/g ; s/CREATE INDEX/CREATE INDEX IF NOT EXISTS/g' /usr/share/doc/pdns/schema.pgsql.sql

ENTRYPOINT [ "/docker-entrypoint.sh" ]

CMD [ "/usr/sbin/pdns_server" ]
Expand Down

0 comments on commit 7b4dd96

Please sign in to comment.