Skip to content

Commit

Permalink
try to add sed directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
CusiniM committed Jul 8, 2024
1 parent 9ba6a5b commit 8dec4a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/tpl-centos-gcc-cuda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 8dec4a6

Please sign in to comment.