From 8dec4a60d52cd6c9ec2d7070278c28a375955926 Mon Sep 17 00:00:00 2001 From: Matteo Cusini Date: Mon, 8 Jul 2024 13:20:00 -0700 Subject: [PATCH] try to add sed directly. --- docker/tpl-centos-gcc-cuda.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/tpl-centos-gcc-cuda.Dockerfile b/docker/tpl-centos-gcc-cuda.Dockerfile index 5162ce8a..28c2c7bd 100644 --- a/docker/tpl-centos-gcc-cuda.Dockerfile +++ b/docker/tpl-centos-gcc-cuda.Dockerfile @@ -9,7 +9,11 @@ ARG SRC_DIR ARG INSTALL_DIR ENV GEOSX_TPL_DIR=$INSTALL_DIR -RUN yum -y install sed +# Add the sed package directly from a URL +ADD http://vault.centos.org/7.9.2009/os/x86_64/Packages/sed-4.2.2-5.el7.x86_64.rpm /tmp/sed.rpm + +# Install sed using rpm +RUN rpm -ivh /tmp/sed.rpm && rm -f /tmp/sed.rpm 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 \