[fix](dockerfile) Switch repos to point to to vault.centos.org because CentOS 7 is EOL (#37568) (#37763)

bp #37568
This commit is contained in:
Mingyu Chen
2024-07-15 15:57:56 +08:00
committed by GitHub
parent ff7a04093e
commit ea12114549

View File

@ -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