Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mirrorcentos script fro comanage-registry-internet2-tier
Ioannis committed Aug 27, 2024
1 parent 9586872 commit e7659d1
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comanage-registry-internet2-tier/Dockerfile
@@ -28,6 +28,10 @@ FROM centos/python-38-centos7

USER root

COPY mirrorcentos.sh /opt/mirrorcentos.sh
RUN chmod +x /opt/mirrorcentos.sh
RUN ["/bin/bash", "-c", "/opt/mirrorcentos.sh"]

ARG COMANAGE_REGISTRY_VERSION
ENV COMANAGE_REGISTRY_VERSION ${COMANAGE_REGISTRY_VERSION}
LABEL comanage_registry_version=${COMANAGE_REGISTRY_VERSION}
3 changes: 3 additions & 0 deletions comanage-registry-internet2-tier/mirrorcentos.sh
@@ -0,0 +1,3 @@
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
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo

0 comments on commit e7659d1

Please sign in to comment.