From e7659d14764d70e2d499b8e7d94b34a0496a6421 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Tue, 27 Aug 2024 18:11:30 +0300 Subject: [PATCH] mirrorcentos script fro comanage-registry-internet2-tier --- comanage-registry-internet2-tier/Dockerfile | 4 ++++ comanage-registry-internet2-tier/mirrorcentos.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 comanage-registry-internet2-tier/mirrorcentos.sh diff --git a/comanage-registry-internet2-tier/Dockerfile b/comanage-registry-internet2-tier/Dockerfile index f67ea3c..cf80cec 100644 --- a/comanage-registry-internet2-tier/Dockerfile +++ b/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} diff --git a/comanage-registry-internet2-tier/mirrorcentos.sh b/comanage-registry-internet2-tier/mirrorcentos.sh new file mode 100644 index 0000000..c7cd219 --- /dev/null +++ b/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 \ No newline at end of file