Skip to content

Commit cc8f0d0

Browse files
committed
ci: deal with CentOS 7 EOL and disappearance of yum mirrors (#1839)
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. The solution (for now) is to configure yum to exclude the missing repo. Signed-off-by: Larry Gritz <[email protected]>
1 parent 73fc3ba commit cc8f0d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/build-scripts/gh-installdeps.bash

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ set -ex
1212
# Install system packages when those are acceptable for dependencies.
1313
#
1414
if [[ "$ASWF_ORG" != "" ]] ; then
15-
# Using ASWF CentOS container
15+
# Using ASWF container
1616

1717
export PATH=/opt/rh/devtoolset-6/root/usr/bin:/usr/local/bin:$PATH
1818

1919
#ls /etc/yum.repos.d
2020

21+
if [[ "$ASWF_VFXPLATFORM_VERSION" == "2021" || "$ASWF_VFXPLATFORM_VERSION" == "2022" ]] ; then
22+
# CentOS 7 based containers need the now-nonexistant centos repo to be
23+
# excluded or all the subsequent yum install commands will fail.
24+
yum-config-manager --disable centos-sclo-rh && true
25+
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
26+
fi
27+
2128
sudo /usr/bin/yum install -y giflib giflib-devel && true
2229
# sudo /usr/bin/yum install -y ffmpeg ffmpeg-devel && true
2330

0 commit comments

Comments
 (0)