From 4cb817ce927ce0fa7e8c7a49720a808af31a0676 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 1 Jul 2024 16:21:20 +0200 Subject: [PATCH] [no-relnote] Use centos:7 vault repos for builds Signed-off-by: Evan Lezar --- docker/Dockerfile.rpm-yum | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile.rpm-yum b/docker/Dockerfile.rpm-yum index 0a04e5f1..1a429f58 100644 --- a/docker/Dockerfile.rpm-yum +++ b/docker/Dockerfile.rpm-yum @@ -20,11 +20,9 @@ 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 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-* RUN yum install -y \ ca-certificates \