From cf4f75a1b6b7fb025fc5064cb444b4f5f37b99b8 Mon Sep 17 00:00:00 2001 From: Steve Vaughan Jr Date: Thu, 8 Aug 2024 14:14:15 -0400 Subject: [PATCH] fix: Repo for centos SCLo moved to vault.centos.org (#356) During the docker build, additional repos are added which still use mirrorlist. --- dev/Dockerfile-stage1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/Dockerfile-stage1 b/dev/Dockerfile-stage1 index 316e60132..77d0337c7 100644 --- a/dev/Dockerfile-stage1 +++ b/dev/Dockerfile-stage1 @@ -55,6 +55,12 @@ RUN cargo search # llvm-toolset-7-clang is too old (clang 5) which cannot work with latest MacOSX sdk. RUN yum -y install https://kickstart.pie.apple.com/reposync/el7-x86_64/centos-7.9.2009-extras/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm + +# Fix SCLo repo +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-SCLo-* && \ + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-* + +# Install devtoolset now that the SCLo repo has ben fixed RUN yum -y install devtoolset-8-gcc-c++ # The default cmake is too old, so replace it with cmake3