Skip to content

Commit abcbac9

Browse files
lgritzscott-wilson
authored andcommitted
ci: deal with CentOS 7 EOL and disappearance of yum mirrors (AcademySoftwareFoundation#4325)
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 <lg@larrygritz.com> Signed-off-by: Scott Wilson <scott@propersquid.com>
1 parent 502d1e9 commit abcbac9

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
@@ -13,10 +13,17 @@ set -ex
1313
# Install system packages when those are acceptable for dependencies.
1414
#
1515
if [[ "$ASWF_ORG" != "" ]] ; then
16-
# Using ASWF CentOS container
16+
# Using ASWF container
1717

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

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

0 commit comments

Comments
 (0)