Skip to content

Commit

Permalink
fix aarch64 centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Feb 12, 2025
1 parent 7b084dc commit 1009411
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/Dockerfile.aarch64-unknown-linux-gnu.centos
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ RUN /linux-image.sh aarch64

FROM centos:7

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

COPY common.sh lib.sh /
RUN /common.sh

Expand Down

0 comments on commit 1009411

Please sign in to comment.