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"]