From: Peter van Dijk Date: Tue, 2 Feb 2021 12:57:03 +0000 (+0100) Subject: builder: support oraclelinux-8; verify build in GH Actions on push&PR X-Git-Tag: dnsdist-1.6.0-alpha2~63^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e33d5120ee8e85e226805a93221ca8425cd0c1b;p=thirdparty%2Fpdns.git builder: support oraclelinux-8; verify build in GH Actions on push&PR --- diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index b9c925d80f..c04f64cb8d 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -18,6 +18,7 @@ jobs: os: - centos-7 - ubuntu-bionic + - oraclelinux-8 steps: - uses: actions/checkout@v2.3.4 with: diff --git a/builder-support/dockerfiles/Dockerfile.target.oraclelinux-8 b/builder-support/dockerfiles/Dockerfile.target.oraclelinux-8 new file mode 100644 index 0000000000..308be16a35 --- /dev/null +++ b/builder-support/dockerfiles/Dockerfile.target.oraclelinux-8 @@ -0,0 +1,17 @@ +# First do the source builds +@INCLUDE Dockerfile.target.sdist + +# This defines the distribution base layer +# Put only the bare minimum of common commands here, without dev tools +FROM oraclelinux:8 as dist-base +ARG BUILDER_CACHE_BUSTER= +RUN touch /var/lib/rpm/* && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \ + dnf install -y 'dnf-command(config-manager)' && \ + dnf config-manager --set-enabled ol8_codeready_builder + +# Do the actual rpm build +@INCLUDE Dockerfile.rpmbuild + +# Do a test install and verify +# Can be skipped with skiptests=1 in the environment +# @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest