Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move sed commands to a shell file
Ioannis committed Aug 27, 2024
1 parent 0f65f5a commit 9586872
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions comanage-registry-internet2-tier-base/Dockerfile
@@ -29,9 +29,10 @@ RUN yum -y remove \
# thus mirrorlist.centos.org is no longer required.
# In order to install packages,
# you have to adjust repositories from "mirrorlist" to "baseurl"
RUN 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
# Rebuild shibboleth
COPY mirrorcentos.sh /opt/mirrorcentos.sh
RUN chmod +x /opt/mirrorcentos.sh
RUN ["/bin/bash", "-c", "/opt/mirrorcentos.sh"]

ARG PHP_VERSION=8.1.29
ARG PHP_SRC_URL=https://github.com/php/php-src/archive/php-${PHP_VERSION}.tar.gz
3 changes: 3 additions & 0 deletions comanage-registry-internet2-tier-base/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 9586872

Please sign in to comment.