From 4ff6b55e522a2f5cf1df0f7eb2ce7f34737d7839 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Fri, 5 Jul 2024 17:29:34 +0800 Subject: [PATCH] build: fix docker image misc script (#9178) (#9186) close pingcap/tiflash#9179 Co-authored-by: wuhuizuo --- 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 d6a29c0f841..2b9ae8c9785 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 \