Skip to content

Commit 5d03925

Browse files
committed
fix centos
1 parent 107433f commit 5d03925

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/Dockerfile.native.centos

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ RUN /native-linux-image.sh
1111

1212
FROM centos:7
1313

14+
# From https://github.com/rust-lang/rust/blob/672e3aaf28ab1e5cbe80b3ff012cd3a8e4ef98af/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile#L9-L12
15+
# CentOS 7 EOL is June 30, 2024, but the repos remain in the vault.
16+
RUN sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
17+
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
18+
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
19+
20+
1421
COPY common.sh lib.sh /
1522
RUN /common.sh
1623

0 commit comments

Comments
 (0)