Skip to content

Commit

Permalink
workaround EOL CentOS mirror. Thanks @brandan-schmitz Fixes Issue #37 (
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail authored Jul 21, 2024
1 parent 8875962 commit 45efcfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM jswank/centos-rpm:7
MAINTAINER Jason Swank <[email protected]>

# 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
Expand Down

0 comments on commit 45efcfc

Please sign in to comment.