From 051390a6d7f7eeff11a09f1104ca1ce3a69635f2 Mon Sep 17 00:00:00 2001 From: Dan Wang Date: Mon, 30 Sep 2024 14:56:34 +0800 Subject: [PATCH] fix yum --- docker/pegasus-build-env/centos7/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/pegasus-build-env/centos7/Dockerfile b/docker/pegasus-build-env/centos7/Dockerfile index 81155415d4..2598de5660 100644 --- a/docker/pegasus-build-env/centos7/Dockerfile +++ b/docker/pegasus-build-env/centos7/Dockerfile @@ -28,7 +28,7 @@ RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \ 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 -y install \ + yum --disablerepo=centos-sclo-rh --enablerepo=centos-sclo-rh-x86_64 --disablerepo=centos-sclo-sclo --enablerepo=centos-sclo-sclo-x86_64 -y install \ devtoolset-7-gcc.x86_64 \ devtoolset-7-gcc-c++.x86_64 \ java-1.8.0-openjdk-devel.x86_64 \