From: Peter van Dijk Date: Fri, 15 Jul 2022 14:27:22 +0000 (+0200) Subject: add 9-stream target and test it daily X-Git-Tag: auth-4.8.0-alpha0~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f021d529629ef9dc7b7983b9d1c7e7ca589b6f13;p=thirdparty%2Fpdns.git add 9-stream target and test it daily --- diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 448539b805..78165f1cff 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -18,6 +18,7 @@ jobs: - ubuntu-bionic - el-8 - centos-8-stream + - centos-9-stream - debian-bullseye - ubuntu-jammy fail-fast: false diff --git a/builder-support/dockerfiles/Dockerfile.rpmbuild b/builder-support/dockerfiles/Dockerfile.rpmbuild index 099a755c9c..4ed620b40b 100644 --- a/builder-support/dockerfiles/Dockerfile.rpmbuild +++ b/builder-support/dockerfiles/Dockerfile.rpmbuild @@ -44,8 +44,10 @@ RUN touch /var/lib/rpm/* && if $(grep -q 'release 9' /etc/redhat-release); then dnf install -y re2 re2-devel --enablerepo=epel-testing; \ fi +# --allowerasing does not exist on el7, so we fall back to just installing +# this is fine because --allowerasing is only there to deal with libcurl conflicting with libcurl-minimal on some el9 images RUN touch /var/lib/rpm/* && mkdir /libh2o && cd /libh2o && \ - yum install -y curl openssl-devel cmake && \ + yum install -y --allowerasing curl libcurl openssl-devel cmake || yum install -y curl libcurl openssl-devel cmake && \ curl -L https://github.com/h2o/h2o/archive/v2.2.6.tar.gz | tar xz && \ CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6 && \ make install diff --git a/builder-support/dockerfiles/Dockerfile.target.centos-9-stream b/builder-support/dockerfiles/Dockerfile.target.centos-9-stream new file mode 100644 index 0000000000..873f63fde1 --- /dev/null +++ b/builder-support/dockerfiles/Dockerfile.target.centos-9-stream @@ -0,0 +1,19 @@ +# 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 quay.io/centos/centos:stream9 as dist-base + +ARG BUILDER_CACHE_BUSTER= + +RUN touch /var/lib/rpm/* && dnf install -y epel-release && \ + dnf install -y 'dnf-command(config-manager)' && \ + dnf config-manager --set-enabled crb + +# 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