From b212b40aac3c40af9b048b983dd14d99994b5308 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Wed, 3 Jul 2024 15:48:19 +0800 Subject: [PATCH] build: fix docker image misc script CentOS 7 has reached EOL. and the mirror.centos.org and mirrorlist.centos.org is offline. --- release-centos7-llvm/dockerfiles/misc/prepare_basic.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release-centos7-llvm/dockerfiles/misc/prepare_basic.sh b/release-centos7-llvm/dockerfiles/misc/prepare_basic.sh index 987306359a7..f5ab4b3f8be 100644 --- a/release-centos7-llvm/dockerfiles/misc/prepare_basic.sh +++ b/release-centos7-llvm/dockerfiles/misc/prepare_basic.sh @@ -17,7 +17,10 @@ # Prepare basic environment for CI/CD. function prepare_basic() { - yum install -y epel-release centos-release-scl + yum install -y epel-release centos-release-scl && \ + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \ + sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \ + sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo yum install -y \ devscripts \ fakeroot \