Skip to content

Commit

Permalink
ci: deal with CentOS 7 EOL and disappearance of yum mirrors
Browse files Browse the repository at this point in the history
This was breaking CI for us. Hard break for icc/icx tests, since those
REQUIRED a yum install of the intel compilers. Softer undetected break
for all the ASWF <= 2022 containers based on CentOS 7, which were not
failing outright but were failing to install certain optional
packages.

Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Jul 7, 2024
1 parent 0b4e015 commit ddfc237
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/build-scripts/gh-installdeps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,22 @@ set -ex
# Install system packages when those are acceptable for dependencies.
#
if [[ "$ASWF_ORG" != "" ]] ; then
# Using ASWF CentOS container
# Using ASWF container

YUMARGS="-y"

#ls /etc/yum.repos.d

# This fix excludes the deprecated mirror. I think we can remove this when
# we no longer rely on CentOS 7 based containers.
if [[ "$ASWF_VFXPLATFORM_VERSION" == "2021" || "$ASWF_VFXPLATFORM_VERSION" == "2022" ]] ; then
# CentOS 7 based containers
echo "Adjusting CentOS-Base.repo"
yum-config-manager --disable centos-sclo-rh/x86_64 && true
sed -i 's,^mirrorlist=,#,; s,^#baseurl=http://mirror\.centos\.org/centos/$releasever,baseurl=https://vault.centos.org/7.9.2009,' /etc/yum.repos.d/CentOS-Base.repo
# YUMARGS="$YUMARGS --disablerepo=centos-sclo-rh/x86_64"
fi

sudo yum install -y giflib giflib-devel && true
if [[ "${USE_OPENCV}" != "0" ]] ; then
sudo yum install -y opencv opencv-devel && true
Expand Down

0 comments on commit ddfc237

Please sign in to comment.