Skip to content

Commit

Permalink
fix: Repo for centos SCLo moved to vault.centos.org (apache#356)
Browse files Browse the repository at this point in the history
During the docker build, additional repos are added which still use mirrorlist.
  • Loading branch information
Steve Vaughan Jr authored and GitHub Enterprise committed Aug 8, 2024
1 parent a91d77b commit cf4f75a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/Dockerfile-stage1
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ RUN cargo search

# llvm-toolset-7-clang is too old (clang 5) which cannot work with latest MacOSX sdk.
RUN yum -y install https://kickstart.pie.apple.com/reposync/el7-x86_64/centos-7.9.2009-extras/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm

# Fix SCLo repo
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-SCLo-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-*

# Install devtoolset now that the SCLo repo has ben fixed
RUN yum -y install devtoolset-8-gcc-c++

# The default cmake is too old, so replace it with cmake3
Expand Down

0 comments on commit cf4f75a

Please sign in to comment.