Allow pdns containers to run rootless

This commit is contained in:
Peter Schiffer 2024-02-05 17:18:05 +01:00
parent a10e85cdc1
commit e34dcd9665
No known key found for this signature in database
GPG key ID: F2A18AC34A008397
6 changed files with 14 additions and 2 deletions

View file

@ -13,6 +13,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& dnf --setopt 'tsflags=' install pdns-backend-mysql \
&& dnf clean all
RUN mkdir -p /run/pdns \
&& chown -R pdns: /etc/pdns /run/pdns
COPY pdns.conf.tpl docker-entrypoint.sh /
ENV VERSION=4.8 \

View file

@ -12,6 +12,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& apk add --allow-untrusted subvars.apk \
&& rm -rf subvars.apk /var/cache/apk/*
RUN mkdir -p /run/pdns \
&& chown -R pdns: /etc/pdns /run/pdns
COPY pdns.conf.tpl docker-entrypoint.sh /
ENV VERSION=4.8 \

View file

@ -13,6 +13,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& dnf --setopt 'tsflags=' install pdns-backend-postgresql \
&& dnf clean all
RUN mkdir -p /run/pdns \
&& chown -R pdns: /etc/pdns /run/pdns
COPY pdns.conf.tpl docker-entrypoint.sh /
ENV VERSION=4.8 \

View file

@ -12,6 +12,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& apk add --allow-untrusted subvars.apk \
&& rm -rf subvars.apk /var/cache/apk/*
RUN mkdir -p /run/pdns \
&& chown -R pdns: /etc/pdns /run/pdns
COPY pdns.conf.tpl docker-entrypoint.sh /
ENV VERSION=4.8 \

View file

@ -11,7 +11,7 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& dnf clean all
RUN mkdir -p /etc/pdns-recursor/api.d /run/pdns-recursor \
&& chown -R pdns-recursor: /etc/pdns-recursor/api.d /run/pdns-recursor
&& chown -R pdns-recursor: /etc/pdns-recursor /run/pdns-recursor
COPY recursor.conf.tpl docker-entrypoint.sh /

View file

@ -9,7 +9,7 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
&& rm -rf subvars.apk /var/cache/apk/*
RUN mkdir -p /etc/pdns/api.d /var/run/pdns-recursor \
&& chown -R recursor: /etc/pdns/api.d /var/run/pdns-recursor
&& chown -R recursor: /etc/pdns /var/run/pdns-recursor
COPY recursor.conf.tpl docker-entrypoint.sh /