Skip to content

Commit 1009411

Browse files
committed
fix aarch64 centos7
1 parent 7b084dc commit 1009411

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/Dockerfile.aarch64-unknown-linux-gnu.centos

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ RUN /linux-image.sh aarch64
66

77
FROM centos:7
88

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

0 commit comments

Comments
 (0)