feat: drop Debian 11 support
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
3a364b462d
commit
d2ad01fd37
@ -16,7 +16,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- sleep 5 # give docker enough time to start
|
- sleep 5 # give docker enough time to start
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- ./debian/11/build.sh
|
|
||||||
- ./debian/12/build.sh
|
- ./debian/12/build.sh
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
# Supported tags and respective `Dockerfile` links
|
# Supported tags and respective `Dockerfile` links
|
||||||
|
|
||||||
- [`4.6-bookworm`, `latest`](https://github.com/pommi/docker-powerdns/blob/master/debian/12/Dockerfile)
|
- [`4.6-bookworm`, `latest`](https://github.com/pommi/docker-powerdns/blob/master/debian/12/Dockerfile)
|
||||||
- [`4.4-bullseye`](https://github.com/pommi/docker-powerdns/blob/master/debian/11/Dockerfile)
|
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
@ -11,10 +11,6 @@ updates_available () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if updates_available pommib/powerdns:4.4-bullseye; then
|
|
||||||
./debian/11/build.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if updates_available pommib/powerdns:4.6-bookworm; then
|
if updates_available pommib/powerdns:4.6-bookworm; then
|
||||||
./debian/12/build.sh
|
./debian/12/build.sh
|
||||||
fi
|
fi
|
||||||
|
22
debian/11/Dockerfile
vendored
22
debian/11/Dockerfile
vendored
@ -1,22 +0,0 @@
|
|||||||
FROM debian:bullseye-slim
|
|
||||||
|
|
||||||
RUN set -eux && \
|
|
||||||
apt-get update && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
||||||
pdns-server \
|
|
||||||
pdns-backend-bind \
|
|
||||||
sqlite3 \
|
|
||||||
bind9-dnsutils \
|
|
||||||
inotify-tools \
|
|
||||||
&& \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ADD start.sh /
|
|
||||||
|
|
||||||
EXPOSE 53/tcp 53/udp
|
|
||||||
VOLUME ["/var/lib/powerdns"]
|
|
||||||
|
|
||||||
CMD /start.sh
|
|
||||||
|
|
||||||
HEALTHCHECK CMD dig +timeout=1 @127.0.0.1 || exit 1
|
|
9
debian/11/build.sh
vendored
9
debian/11/build.sh
vendored
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
IMAGE=pommib/powerdns:4.4-bullseye
|
|
||||||
docker pull $IMAGE
|
|
||||||
docker pull debian:bullseye-slim
|
|
||||||
docker build --no-cache -t $IMAGE ./debian/11/
|
|
||||||
docker push $IMAGE
|
|
30
debian/11/start.sh
vendored
30
debian/11/start.sh
vendored
@ -1,30 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# create sqlite database for DNSSEC
|
|
||||||
if test ! -e /var/lib/powerdns/bind-dnssec-db.sqlite3; then
|
|
||||||
echo [$0] Initializing /var/lib/powerdns/bind-dnssec-db.sqlite3
|
|
||||||
/usr/bin/pdnsutil create-bind-db /var/lib/powerdns/bind-dnssec-db.sqlite3
|
|
||||||
fi
|
|
||||||
sed -i 's/^# bind-dnssec-db=/bind-dnssec-db=\/var\/lib\/powerdns\/bind-dnssec-db.sqlite3/' /etc/powerdns/pdns.d/bind.conf
|
|
||||||
|
|
||||||
# start powerdns server
|
|
||||||
/usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no &
|
|
||||||
|
|
||||||
# watch for zone changes
|
|
||||||
inotifywait -mqre modify --exclude '.*(\.git|.*\.swp)' --format '%w%f' "/var/lib/powerdns/zones/" |
|
|
||||||
while read -r path; do
|
|
||||||
zone=$(basename $path)
|
|
||||||
echo [$0] A modification was detected in $path
|
|
||||||
echo [$0] Executing \`/usr/bin/pdns_control bind-reload-now $zone\`
|
|
||||||
/usr/bin/pdns_control bind-reload-now $zone
|
|
||||||
if pdnsutil show-zone $zone 2>/dev/null | grep -q "Zone is not actively secured"; then
|
|
||||||
echo [$0] Zone is not actively secured, skipping \`pdnsutil rectify-zone $zone\`
|
|
||||||
else
|
|
||||||
echo [$0] DNSSEC secured zone. Executing \`pdnsutil rectify-zone $zone\`
|
|
||||||
/usr/bin/pdnsutil rectify-zone $zone
|
|
||||||
fi
|
|
||||||
done &
|
|
||||||
|
|
||||||
wait -n
|
|
||||||
|
|
||||||
exit $?
|
|
Loading…
Reference in New Issue
Block a user