From 596d7e8108c9e3de0480499570b655e5cef632b9 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 18 Feb 2022 12:50:37 +0200 Subject: [PATCH] Fix centos8 builds Signed-off-by: Evan Lezar --- build/container/Dockerfile.centos | 5 +++-- docker/Dockerfile.centos | 5 +++-- test/release/docker/centos8/Dockerfile | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/build/container/Dockerfile.centos b/build/container/Dockerfile.centos index 1b580b00..5358ea68 100644 --- a/build/container/Dockerfile.centos +++ b/build/container/Dockerfile.centos @@ -44,11 +44,12 @@ FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} ARG BASE_DIST # 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 [[ "${BASE_DIST}" != "centos8" ]] || \ ( \ 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-* \ ) ENV NVIDIA_DISABLE_REQUIRE="true" diff --git a/docker/Dockerfile.centos b/docker/Dockerfile.centos index 71cdb761..d7a7d21d 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 \ ca-certificates \ diff --git a/test/release/docker/centos8/Dockerfile b/test/release/docker/centos8/Dockerfile index 20cc44f8..185cb6e7 100644 --- a/test/release/docker/centos8/Dockerfile +++ b/test/release/docker/centos8/Dockerfile @@ -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 \