]> granicus.if.org Git - pdns/commitdiff
builder: add Ubuntu Artful auth target
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 14 Dec 2017 16:19:19 +0000 (17:19 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 27 Sep 2018 11:59:25 +0000 (13:59 +0200)
builder-support/dockerfiles/Dockerfile.debbuild
builder-support/dockerfiles/Dockerfile.debbuild-prepare
builder-support/dockerfiles/Dockerfile.target.ubuntu-artful [new file with mode: 0644]

index 0c150a5ad52776494d525e099f0e9e1afd58c9bb..b38b80f007be140c8289a488eb39beef70b4a568 100644 (file)
@@ -1,3 +1,4 @@
+@IF [ ! -z "$M_authoritative" ]
 RUN if $(echo ${BUILDER_VERSION} | grep -q -E '^0\.0\.'); then \
   # make sure we don't break dependencies for master releases \
   sed -i '/pdns-server (<< .*/d' pdns-${BUILDER_VERSION}/debian/control; \
@@ -6,3 +7,4 @@ fi
 RUN PDNS_TEST_NO_IPV6=1 builder/helpers/build-debs.sh pdns-${BUILDER_VERSION}
 
 RUN mv pdns*${BUILDER_VERSION}*.deb /dist
+@ENDIF
index 18b9861a50936d13fd7785ec9316123af5889e5c..feba1723f930f95aa85cfe8d9b1820c471e2faa5 100644 (file)
@@ -1,6 +1,6 @@
 FROM dist-base as package-builder
 ARG APT_URL
-RUN apt-get -y install devscripts dpkg-dev build-essential python3
+RUN apt-get -y install devscripts dpkg-dev build-essential python3 equivs
 
 RUN mkdir /dist /pdns
 WORKDIR /pdns
@@ -15,4 +15,6 @@ ARG BUILDER_RELEASE
 
 COPY --from=sdist /sdist /sdist
 
+@IF [ ! -z "$M_authoritative" ]
 RUN tar xvf /sdist/pdns-${BUILDER_VERSION}.tar.bz2
+@ENDIF
diff --git a/builder-support/dockerfiles/Dockerfile.target.ubuntu-artful b/builder-support/dockerfiles/Dockerfile.target.ubuntu-artful
new file mode 100644 (file)
index 0000000..7f02ad9
--- /dev/null
@@ -0,0 +1,16 @@
+# First do the source builds
+@INCLUDE Dockerfile.target.sdist
+
+FROM ubuntu:artful as dist-base
+ARG APT_URL
+RUN apt-get update && apt-get -y dist-upgrade
+
+@INCLUDE Dockerfile.debbuild-prepare
+
+ADD builder-support/debian/debian-stretch/ pdns-${BUILDER_VERSION}/debian/
+
+@INCLUDE Dockerfile.debbuild
+
+# Do a test install and verify
+# Can be skipped with skiptests=1 in the environment
+# @EXEC [ "$skiptests" = "" ] && include Dockerfile.debtest