]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix CentOS 8 issue and install `dig`. 8599/head
authorErik Winkels <erik.winkels@powerdns.com>
Mon, 9 Dec 2019 09:52:37 +0000 (10:52 +0100)
committerErik Winkels <erik.winkels@powerdns.com>
Mon, 9 Dec 2019 09:52:37 +0000 (10:52 +0100)
build-scripts/docker/generate-repo-files.sh

index 4b1d0ebb2ba202535ac98ea01d6a5b74f4339a89..e3d7cdfa0c60b8a8f9263915cbf2031ab1a10d26 100755 (executable)
@@ -21,7 +21,14 @@ write_centos()
     cat <<EOF > Dockerfile.$RELEASE.$OS-$VERSION
 FROM $OS:$VERSION
 
-RUN yum install -y epel-release yum-plugin-priorities
+RUN yum install -y epel-release bind-utils
+EOF
+    if [ "$VERSION" = "6" -o "$VERSION" = "7" ]; then
+        cat <<EOF >> Dockerfile.$RELEASE.$OS-$VERSION
+RUN yum install -y yum-plugin-priorities
+EOF
+    fi
+    cat <<EOF >> Dockerfile.$RELEASE.$OS-$VERSION
 RUN curl -o /etc/yum.repos.d/powerdns-$RELEASE.repo https://repo.powerdns.com/repo-files/$OS-$RELEASE.repo
 RUN yum install -y $PKG
 
@@ -48,7 +55,7 @@ EOF
 FROM $OS:$VERSION
 
 RUN apt-get update
-RUN apt-get install -y curl gnupg
+RUN apt-get install -y curl gnupg dnsutils
 
 COPY pdns.debian-and-ubuntu /etc/apt/preferences.d/pdns
 COPY pdns.list.$RELEASE.$OS-$VERSION /etc/apt/sources.list.d/pdns.list