Skip to content

Commit

Permalink
fix(docker): fixed centos7 builder because of EoL.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Jul 30, 2024
1 parent 2da5fab commit 9ee5859
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docker/builders/builder-centos-x86_64_gcc4.8.5.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@ FROM centos:7

LABEL maintainer="[email protected]"

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 \
Expand Down

0 comments on commit 9ee5859

Please sign in to comment.