From 79decbf9349ec938b301212c4c8cc793a3fd4c2d Mon Sep 17 00:00:00 2001 From: rubenruizdegauna Date: Fri, 12 Jul 2024 11:08:07 +0200 Subject: [PATCH] fix centos 7 repo url (#24) --- molecule/default/dockerfiles/centos7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/molecule/default/dockerfiles/centos7 b/molecule/default/dockerfiles/centos7 index 1a12573..ab26f6e 100644 --- a/molecule/default/dockerfiles/centos7 +++ b/molecule/default/dockerfiles/centos7 @@ -2,8 +2,8 @@ FROM centos:7 ## Updating the default repo to vault.centos.org ## Context: https://forketyfork.medium.com/centos-8-no-urls-in-mirrorlist-error-3f87c3466faa -#RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* \ -# && sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* +RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* \ + && sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* # Run a system update so the system doesn't overwrite the fake systemctl later RUN yum -y update @@ -13,4 +13,4 @@ RUN yum -y install python3-dnf sudo # Adding fake systemctl RUN curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py -o /usr/local/bin/systemctl -CMD ["/usr/local/bin/systemctl"] \ No newline at end of file +CMD ["/usr/local/bin/systemctl"]