From 45efcfcf62d16f187fa313be42c766ee679b4ce2 Mon Sep 17 00:00:00 2001 From: Dan Rollo Date: Sun, 21 Jul 2024 18:42:33 -0400 Subject: [PATCH] workaround EOL CentOS mirror. Thanks @brandan-schmitz Fixes Issue #37 (#38) --- rpm/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm/Dockerfile b/rpm/Dockerfile index 5dd9f01..9e45bb2 100644 --- a/rpm/Dockerfile +++ b/rpm/Dockerfile @@ -1,6 +1,11 @@ FROM jswank/centos-rpm:7 MAINTAINER Jason Swank +# workaround missing EOL CentOS mirrors. see: https://github.com/sonatype-nexus-community/nexus-repository-installer/issues/37 +RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo +RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo +RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + RUN yum -y install expect # force sha256 signature of rpm, instead of old default of sha1 used by CentOS7