From 024dd3126da1d4fd000a77c9d0561f570633f6cc Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 11 Jun 2024 14:31:06 +0200 Subject: [PATCH] Use archived package repo for centos:stream8 Signed-off-by: Evan Lezar --- docker/Dockerfile.rpm-yum | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/Dockerfile.rpm-yum b/docker/Dockerfile.rpm-yum index 472c3384..0a04e5f1 100644 --- a/docker/Dockerfile.rpm-yum +++ b/docker/Dockerfile.rpm-yum @@ -17,6 +17,15 @@ ARG BASEIMAGE FROM ${BASEIMAGE} +# centos:stream8 is EOL. +# We switch to the vault repositories for this base image. +ARG BASEIMAGE +RUN if [ "${BASEIMAGE}" = "quay.io/centos/centos:stream8" ]; then \ + sed -i -e "s|mirrorlist=|#mirrorlist=|g" \ + -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \ + /etc/yum.repos.d/CentOS-Stream-*; \ + fi + RUN yum install -y \ ca-certificates \ gcc \