From 6aea61457ba52cfa742e9e8c9b5312e13fe99484 Mon Sep 17 00:00:00 2001 From: dd Date: Sun, 21 Sep 2025 11:00:23 +0200 Subject: added hack for pdns-recursor to make the docker builder use archive apt mirror as workaround for archival of main mirror --- packages/pdns-recursor/Dockerfile.hack | 2 ++ packages/pdns-recursor/Jenkinsfile | 1 + packages/pdns-recursor/hack.sh | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 packages/pdns-recursor/Dockerfile.hack create mode 100755 packages/pdns-recursor/hack.sh diff --git a/packages/pdns-recursor/Dockerfile.hack b/packages/pdns-recursor/Dockerfile.hack new file mode 100644 index 0000000..6458adc --- /dev/null +++ b/packages/pdns-recursor/Dockerfile.hack @@ -0,0 +1,2 @@ +# Fix apt to use archive mirror +RUN sed -i -E 's~^deb http://(deb|security).debian.org~deb http://archive.debian.org~' /etc/apt/sources.list diff --git a/packages/pdns-recursor/Jenkinsfile b/packages/pdns-recursor/Jenkinsfile index b549730..62a92a2 100644 --- a/packages/pdns-recursor/Jenkinsfile +++ b/packages/pdns-recursor/Jenkinsfile @@ -27,6 +27,7 @@ def pkgList = [ 'buildCmd': """ git submodule init git submodule update + ../hack.sh ./builder/build.sh -m recursor -V ${pdnsRecursorVersion} -v debian-buster-amd64 """], ] diff --git a/packages/pdns-recursor/hack.sh b/packages/pdns-recursor/hack.sh new file mode 100755 index 0000000..6474b6c --- /dev/null +++ b/packages/pdns-recursor/hack.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sed -i '/ARG APT_URL/r ../Dockerfile.hack' ./builder-support/dockerfiles/Dockerfile.target.debian-buster -- cgit v1.2.3