From 19b5ddff8c2879f927b350e245a059010aac751f Mon Sep 17 00:00:00 2001 From: Sebastian Achilles Date: Sat, 23 Nov 2024 11:22:27 +0100 Subject: [PATCH] fix CentOS 7.9 container --- centos-7.9-python3/Dockerfile | 4 ++++ centos-7.9/Dockerfile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/centos-7.9-python3/Dockerfile b/centos-7.9-python3/Dockerfile index c08c7b9..dbda322 100644 --- a/centos-7.9-python3/Dockerfile +++ b/centos-7.9-python3/Dockerfile @@ -1,5 +1,9 @@ FROM centos:7.9.2009 RUN useradd -ms /bin/bash easybuild +# mirrorlist.centos.org doesn't exists anymore, update repo files +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 yum -y install epel-release && yum -y install python3 python3-pip Lmod RUN yum -y install bzip2 curl diffutils file gcc-c++ git gzip make openssl openssl-devel rdma-core-devel patch sudo tar unzip which xz RUN yum -y update ca-certificates diff --git a/centos-7.9/Dockerfile b/centos-7.9/Dockerfile index ea82f9d..42faa46 100644 --- a/centos-7.9/Dockerfile +++ b/centos-7.9/Dockerfile @@ -1,5 +1,9 @@ FROM centos:7.9.2009 RUN useradd -ms /bin/bash easybuild +# mirrorlist.centos.org doesn't exists anymore, update repo files +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 yum -y install epel-release && yum -y install python python2-pip Lmod RUN yum -y install bzip2 curl diffutils file gcc-c++ git gzip make openssl openssl-devel rdma-core-devel patch sudo tar unzip which xz RUN yum -y update ca-certificates