From 9ee5859bb67b56a8b114ce0ac2a0da7cd059ea89 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 25 Jul 2024 17:20:28 +0200 Subject: [PATCH] fix(docker): fixed centos7 builder because of EoL. Signed-off-by: Federico Di Pierro --- .../builder-centos-x86_64_gcc4.8.5.Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docker/builders/builder-centos-x86_64_gcc4.8.5.Dockerfile b/docker/builders/builder-centos-x86_64_gcc4.8.5.Dockerfile index 1911350b..fa5f5f01 100644 --- a/docker/builders/builder-centos-x86_64_gcc4.8.5.Dockerfile +++ b/docker/builders/builder-centos-x86_64_gcc4.8.5.Dockerfile @@ -2,8 +2,19 @@ FROM centos:7 LABEL maintainer="cncf-falco-dev@lists.cncf.io" -RUN yum -y install centos-release-scl && \ - yum -y install gcc \ +# Fix broken mirrors - centos:7 eol +RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \ + sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \ + sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo + +RUN yum -y install centos-release-scl + +# fix broken mirrors (again) +RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \ + sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \ + sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo + +RUN yum -y install gcc \ llvm-toolset-7.0 \ bash-completion \ bc \