Browse Source

Merge pull request #5 from icedream/pr/use-trusted-gpg-d

Install powerdns keyring directly to trusted.gpg.d
pull/6/head^2
Fábio Kaiser Rauber 3 years ago
committed by GitHub
parent
commit
b218db7ae4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pdns/Dockerfile

9
pdns/Dockerfile

@ -12,16 +12,17 @@ ENV PDNSCONF_LAUNCH="gmysql" \
PDNSCONF_API_KEY="" \ PDNSCONF_API_KEY="" \
SECALLZONES_CRONJOB="no" SECALLZONES_CRONJOB="no"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl gnupg && \ ADD https://repo.powerdns.com/FD380FBB-pub.asc /etc/apt/trusted.gpg.d/powerdns-key.asc
curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
ADD pdns.list /etc/apt/sources.list.d/pdns.list ADD pdns.list /etc/apt/sources.list.d/pdns.list
ADD pdns.preference /etc/apt/preferences.d/pdns ADD pdns.preference /etc/apt/preferences.d/pdns
RUN apt-get update && \ RUN \
chmod 644 /etc/apt/trusted.gpg.d/powerdns-key.asc && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mariadb-client && \ DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mariadb-client && \
rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \ rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron jq && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron curl jq && \
rm /etc/cron.daily/* && \ rm /etc/cron.daily/* && \
mkdir /var/run/pdns && \ mkdir /var/run/pdns && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Loading…
Cancel
Save