From ea121145490babc8fc558a205bf461c7ced45254 Mon Sep 17 00:00:00 2001 From: Mingyu Chen Date: Mon, 15 Jul 2024 15:57:56 +0800 Subject: [PATCH] [fix](dockerfile) Switch repos to point to to vault.centos.org because CentOS 7 is EOL (#37568) (#37763) bp #37568 --- docker/compilation/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/compilation/Dockerfile b/docker/compilation/Dockerfile index 6b25dc2c3f..4290291c1d 100644 --- a/docker/compilation/Dockerfile +++ b/docker/compilation/Dockerfile @@ -17,6 +17,13 @@ FROM centos:7 AS builder +# Switch repos to point to to vault.centos.org because CentOS 7 is EOL +RUN sed -i \ + -e 's/^mirrorlist/#mirrorlist/' \ + -e 's/^#baseurl/baseurl/' \ + -e 's/mirror\.centos\.org/vault.centos.org/' \ + /etc/yum.repos.d/*.repo + # install epel repo for ccache RUN yum install epel-release -y && yum install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm -y && yum clean all && yum makecache