From e0e4115a01dfd0b935abd383fdf1855138811af4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 4 Jun 2024 09:31:46 -0400 Subject: [PATCH] containers: work around centos 8 stream getting archived The centos 8 stream distribution is now EOL and the yum repo mirrors are now offline. However, our CI is designed to test older released versions of ceph where the container images are still using centos 8 stream. Borrow and adapt a line from the ceph-csi project in order to use the centos 8 archives (vault) until either we stop testing these versions of ceph or the ceph project changes the base distro for these release versions. Signed-off-by: John Mulligan --- testing/containers/ceph/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/containers/ceph/Dockerfile b/testing/containers/ceph/Dockerfile index 4d2f55e..5cbd04e 100644 --- a/testing/containers/ceph/Dockerfile +++ b/testing/containers/ceph/Dockerfile @@ -11,6 +11,7 @@ ENV GO_CEPH_VERSION=${GO_CEPH_VERSION:-$CEPH_VERSION} RUN true && \ echo "Check: [ ${CEPH_VERSION} = ${GO_CEPH_VERSION} ]" && \ [ "${CEPH_VERSION}" = "${GO_CEPH_VERSION}" ] && \ + (. /etc/os-release ; if [ "$ID" = centos -a "$VERSION" = 8 ]; then find /etc/yum.repos.d/ -name '*.repo' -exec sed -i -e 's|^mirrorlist=|#mirrorlist=|g' -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' {} \; ; fi ) && \ yum update -y --disablerepo=ganesha && \ cv="$(rpm -q --queryformat '%{version}-%{release}' ceph-common)" && \ yum install -y \