From 8b7f7d9ef320e59022fb87f375f0bb8fbe55205d Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 5 Jul 2024 09:28:48 +0200 Subject: [PATCH] Replace usage of mirrorlist with baseurl (#250) Motivation: We can't use the default mirrorlist anymore as it will fail and so fail the docker build Modifications: Use baseurl with the correct vault Result: Docker image can be build again --- docker/Dockerfile.centos7 | 5 ++++- docker/Dockerfile.centos7arm64v8 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.centos7 b/docker/Dockerfile.centos7 index 883d8702..78fa0433 100644 --- a/docker/Dockerfile.centos7 +++ b/docker/Dockerfile.centos7 @@ -1,10 +1,13 @@ -FROM centos:7.9.2009 +FROM centos:7.6.1810 ARG gcc_version=10.2-2020.11 ENV GCC_VERSION $gcc_version ENV MAVEN_VERSION 3.9.1 ENV SOURCE_DIR /root/source +# Update as we need to use the vault now. +RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/vault.centos.org\/\/7.6.1810\//g' /etc/yum.repos.d/CentOS-Base.repo + # Install requirements RUN yum install -y \ apr-devel \ diff --git a/docker/Dockerfile.centos7arm64v8 b/docker/Dockerfile.centos7arm64v8 index bc7fc2a3..66fc250f 100644 --- a/docker/Dockerfile.centos7arm64v8 +++ b/docker/Dockerfile.centos7arm64v8 @@ -1,7 +1,10 @@ -FROM arm64v8/centos:7.9.2009 +FROM arm64v8/centos:7.6.1810 ENV MAVEN_VERSION 3.9.1 +# Update as we need to use the vault now. +RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/vault.centos.org\/\/7.6.1810\//g' /etc/yum.repos.d/CentOS-Base.repo + # Install requirements RUN yum install -y \ apr-devel \