Skip to content

Commit

Permalink
centos
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Oct 11, 2024
1 parent 0a5235b commit 63423f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layer-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos

# Patch for old centos https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo

RUN yum update -y && \
yum install centos-release-scl -y && \
yum install llvm-toolset-7 -y
Expand Down

0 comments on commit 63423f3

Please sign in to comment.