Skip to content

Commit

Permalink
centos: Workaround removal of repos (EOL)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax committed Sep 12, 2024
1 parent ab89e07 commit 27eef73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/linux/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ ARG BAZELISK_SHA256SUM=ce52caa51ef9e509fb6b7e5ad892e5cf10feb0794b0aed4d2f36adb00
LLVM_VERSION=10.0.0
ENV LC_ALL=$LC_ALL \
PATH=/opt/rh/rh-git218/root/usr/bin:/opt/rh/devtoolset-7/root/usr/bin:/opt/llvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Workaround centos EOL
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
RUN --mount=type=bind,source=/common_fun.sh,target=/common_fun.sh \
--mount=type=bind,source=/centos/fun.sh,target=/centos/fun.sh \
. ./centos/fun.sh \
Expand Down

0 comments on commit 27eef73

Please sign in to comment.