Skip to content

Commit dda1b18

Browse files
boegeltruib
authored andcommitted
clean up downloading RPM for Apptainer < 1.3.0 RPM from EPEL 8.8 archive, for now
1 parent 6120e18 commit dda1b18

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: install_apptainer_ubuntu.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ set -e
55
# see https://github.com/apptainer/singularity/issues/5390#issuecomment-899111181
66
sudo apt-get install alien
77
alien --version
8-
#apptainer_rpm=$(curl --silent -L https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/a/ | grep 'apptainer-[0-9]' | sed 's/.*\(apptainer[0-9._a-z-]*.rpm\).*/\1/g')
9-
#curl -OL https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/a/${apptainer_rpm}
10-
#/pub/archive/epel/8.8/Everything/x86_64/Packages/a
11-
apptainer_rpm=$(curl --silent -L https://dl.fedoraproject.org/pub/archive/epel/8.8/Everything/x86_64/Packages/a/ | grep 'apptainer-[0-9]' | sed 's/.*\(apptainer[0-9._a-z-]*.rpm\).*/\1/g')
12-
curl -OL https://dl.fedoraproject.org/pub/archive/epel/8.8/Everything/x86_64/Packages/a/${apptainer_rpm}
8+
# stick to Apptainer < 1.3.0 by downloading from EPEL 8.8 archive,
9+
# since CI workflow for testing scripts hangs/fails when using Apptainer 1.3.0
10+
# cfr. https://github.com/EESSI/software-layer/pull/514
11+
epel_subdir="pub/epel/8"
12+
epel_subdir="pub/archive/epel/8.8"
13+
apptainer_rpm=$(curl --silent -L https://dl.fedoraproject.org/${epel_subdir}/Everything/x86_64/Packages/a/ | grep 'apptainer-[0-9]' | sed 's/.*\(apptainer[0-9._a-z-]*.rpm\).*/\1/g')
14+
curl -OL https://dl.fedoraproject.org/${epel_subdir}/Everything/x86_64/Packages/a/${apptainer_rpm}
1315
sudo alien -d ${apptainer_rpm}
1416
sudo apt install ./apptainer*.deb
1517
apptainer --version

0 commit comments

Comments
 (0)