From 13452425cc884c104d448e898539e530b729d78e Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 18 Feb 2022 12:55:28 +0200 Subject: [PATCH] Fix centos8 builds Signed-off-by: Evan Lezar --- docker/Dockerfile.centos | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.centos b/docker/Dockerfile.centos index f69de3e3..153431c9 100644 --- a/docker/Dockerfile.centos +++ b/docker/Dockerfile.centos @@ -3,11 +3,12 @@ FROM ${BASEIMAGE} ARG BASEIMAGE # See https://www.centos.org/centos-linux-eol/ -# and https://stackoverflow.com/a/70930049 +# and https://stackoverflow.com/a/70930049 for move to vault.centos.org +# and https://serverfault.com/questions/1093922/failing-to-run-yum-update-in-centos-8 for move to vault.epel.cloud RUN [[ "${BASEIMAGE}" != "centos:8" ]] || \ ( \ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \ - sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* \ + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-* \ ) RUN yum install -y \