mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 11:01:14 +01:00
subvars has good packages now
This commit is contained in:
parent
4754e76ce7
commit
c18b7dcdce
5 changed files with 21 additions and 33 deletions
|
@ -1,6 +1,7 @@
|
||||||
FROM rockylinux/rockylinux:9-ubi
|
FROM rockylinux/rockylinux:9-ubi
|
||||||
|
|
||||||
RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
||||||
|
&& echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
||||||
&& echo 'tsflags=nodocs' >> /etc/dnf/dnf.conf \
|
&& echo 'tsflags=nodocs' >> /etc/dnf/dnf.conf \
|
||||||
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
||||||
&& curl -fsSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \
|
&& curl -fsSL -o /etc/yum.repos.d/yarn.repo https://dl.yarnpkg.com/rpm/yarn.repo \
|
||||||
|
@ -19,13 +20,9 @@ RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
||||||
python3-xmlsec \
|
python3-xmlsec \
|
||||||
uwsgi \
|
uwsgi \
|
||||||
yarn \
|
yarn \
|
||||||
|
https://github.com/kha7iq/subvars/releases/download/v0.1.5/subvars_${arch}.rpm \
|
||||||
&& dnf clean all
|
&& dnf clean all
|
||||||
|
|
||||||
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'x86_64') \
|
|
||||||
&& curl -fsSL https://github.com/kha7iq/subvars/releases/download/v0.1.4/subvars_Linux_${arch}.tar.gz \
|
|
||||||
| tar -xzf - -C /usr/local/bin subvars \
|
|
||||||
&& chmod +x /usr/local/bin/subvars
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/powerdns-admin \
|
RUN mkdir -p /opt/powerdns-admin \
|
||||||
&& curl -fsSL https://github.com/PowerDNS-Admin/PowerDNS-Admin/archive/refs/tags/v0.4.1.tar.gz \
|
&& curl -fsSL https://github.com/PowerDNS-Admin/PowerDNS-Admin/archive/refs/tags/v0.4.1.tar.gz \
|
||||||
| tar -xzf - -C /opt/powerdns-admin --strip 1 \
|
| tar -xzf - -C /opt/powerdns-admin --strip 1 \
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
FROM fedora:39
|
FROM fedora:39
|
||||||
|
|
||||||
RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
||||||
|
&& echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
||||||
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
||||||
&& sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/fedora-cisco-openh264.repo \
|
&& sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/fedora-cisco-openh264.repo \
|
||||||
&& dnf --refresh upgrade \
|
&& dnf --refresh upgrade \
|
||||||
&& dnf install pdns-recursor \
|
&& dnf install \
|
||||||
|
pdns-recursor \
|
||||||
|
https://github.com/kha7iq/subvars/releases/download/v0.1.5/subvars_${arch}.rpm \
|
||||||
&& dnf clean all
|
&& dnf clean all
|
||||||
|
|
||||||
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'x86_64') \
|
|
||||||
&& curl -fsSL https://github.com/kha7iq/subvars/releases/download/v0.1.4/subvars_Linux_${arch}.tar.gz \
|
|
||||||
| tar -xzf - -C /usr/local/bin subvars \
|
|
||||||
&& chmod +x /usr/local/bin/subvars
|
|
||||||
|
|
||||||
RUN mkdir -p /etc/pdns-recursor/api.d /run/pdns-recursor \
|
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/api.d /run/pdns-recursor
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
FROM alpine:3.19.0
|
FROM alpine:3.19.0
|
||||||
|
|
||||||
RUN apk update \
|
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
||||||
|
&& apk update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add pdns-recursor \
|
&& apk add pdns-recursor \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& wget -O subvars.apk https://github.com/kha7iq/subvars/releases/download/v0.1.5/subvars_${arch}.apk \
|
||||||
|
&& apk add --allow-untrusted subvars.apk \
|
||||||
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'x86_64') \
|
&& rm -rf subvars.apk /var/cache/apk/*
|
||||||
&& wget -qO- https://github.com/kha7iq/subvars/releases/download/v0.1.4/subvars_Linux_${arch}.tar.gz \
|
|
||||||
| tar -xzf - -C /usr/local/bin subvars \
|
|
||||||
&& chmod +x /usr/local/bin/subvars
|
|
||||||
|
|
||||||
RUN mkdir -p /etc/pdns/api.d /var/run/pdns-recursor \
|
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/api.d /var/run/pdns-recursor
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
FROM fedora:39
|
FROM fedora:39
|
||||||
|
|
||||||
RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
||||||
|
&& echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
||||||
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
&& echo 'assumeyes=True' >> /etc/dnf/dnf.conf \
|
||||||
&& sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/fedora-cisco-openh264.repo \
|
&& sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/fedora-cisco-openh264.repo \
|
||||||
&& dnf --refresh upgrade \
|
&& dnf --refresh upgrade \
|
||||||
|
@ -8,14 +9,10 @@ RUN echo 'install_weak_deps=False' >> /etc/dnf/dnf.conf \
|
||||||
hostname \
|
hostname \
|
||||||
mariadb \
|
mariadb \
|
||||||
pdns \
|
pdns \
|
||||||
|
https://github.com/kha7iq/subvars/releases/download/v0.1.5/subvars_${arch}.rpm \
|
||||||
&& dnf --setopt 'tsflags=' install pdns-backend-mysql \
|
&& dnf --setopt 'tsflags=' install pdns-backend-mysql \
|
||||||
&& dnf clean all
|
&& dnf clean all
|
||||||
|
|
||||||
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'x86_64') \
|
|
||||||
&& curl -fsSL https://github.com/kha7iq/subvars/releases/download/v0.1.4/subvars_Linux_${arch}.tar.gz \
|
|
||||||
| tar -xzf - -C /usr/local/bin subvars \
|
|
||||||
&& chmod +x /usr/local/bin/subvars
|
|
||||||
|
|
||||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||||
|
|
||||||
ENV VERSION=4.8 \
|
ENV VERSION=4.8 \
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
FROM alpine:3.19.0
|
FROM alpine:3.19.0
|
||||||
|
|
||||||
RUN apk update \
|
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
||||||
|
&& apk update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add \
|
&& apk add \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
pdns \
|
pdns \
|
||||||
pdns-backend-mysql \
|
pdns-backend-mysql \
|
||||||
pdns-doc \
|
pdns-doc \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& wget -O subvars.apk https://github.com/kha7iq/subvars/releases/download/v0.1.5/subvars_${arch}.apk \
|
||||||
|
&& apk add --allow-untrusted subvars.apk \
|
||||||
RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'x86_64') \
|
&& rm -rf subvars.apk /var/cache/apk/*
|
||||||
&& wget -qO- https://github.com/kha7iq/subvars/releases/download/v0.1.4/subvars_Linux_${arch}.tar.gz \
|
|
||||||
| tar -xzf - -C /usr/local/bin subvars \
|
|
||||||
&& chmod +x /usr/local/bin/subvars
|
|
||||||
|
|
||||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue