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