Skip to content

Commit

Permalink
fix centos mirrorlist issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Aug 27, 2024
1 parent 4a3040d commit 8930717
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion comanage-registry-internet2-tier-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ USER root
RUN yum -y remove \
postgresql-libs \
postgresql-devel \
postgresql
postgresql \

# Centos 7 has reached EOL (End of Life) today, 1 July 2024,
# 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 \

ARG PHP_VERSION=8.1.29
ARG PHP_SRC_URL=https://github.com/php/php-src/archive/php-${PHP_VERSION}.tar.gz
Expand Down

0 comments on commit 8930717

Please sign in to comment.