From 17fd57a853ad987179ea0b8a9050c60a7e54b7fd Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 11 Jun 2024 14:27:36 +0200 Subject: [PATCH] Use archived package repo for centos:stream8 Signed-off-by: Evan Lezar --- mk/Dockerfile.centos | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mk/Dockerfile.centos b/mk/Dockerfile.centos index c81750a5..9b0777ac 100644 --- a/mk/Dockerfile.centos +++ b/mk/Dockerfile.centos @@ -1,6 +1,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 + SHELL ["/bin/bash", "-c"] ARG OS_VERSION