Skip to content

Commit 2a5af2a

Browse files
authored
Merge pull request #102 from matyasselmeci/pr/el10-take-two
Get special x86_64_v2 version of osg-release if we're on EL 10 x86-64-v2
2 parents 9e247f5 + b9a4533 commit 2a5af2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ RUN \
1212
log () { printf "\n%s\t%s\n\n" "$(date '+%F %X %z')" "$*" ; } ; \
1313
# Grab the major version /etc/os-release \
1414
DVER=$(awk -F '[=".]+' '/^VERSION_ID=/ {print $2}' /etc/os-release); \
15+
if [ $DVER = 10 ] && [ "$(rpm -E '%{x86_64_v2}')" = 1 ]; then \
16+
OSG_URL=https://repo.osg-htc.org/osg/${OSG_RELEASE}-main/osg-${OSG_RELEASE}-main-el10-release-latest.x86_64_v2.rpm; \
17+
else \
18+
OSG_URL=https://repo.osg-htc.org/osg/${OSG_RELEASE}-main/osg-${OSG_RELEASE}-main-el${DVER}-release-latest.rpm; \
19+
fi; \
1520
log "Updating OS YUM cache" && time \
1621
yum makecache && \
1722
log "Updating OS" && time \
1823
yum distro-sync -y && \
19-
OSG_URL=https://repo.osg-htc.org/osg/${OSG_RELEASE}-main/osg-${OSG_RELEASE}-main-el${DVER}-release-latest.rpm && \
2024
log "Installing EPEL/OSG repo packages" && time \
2125
yum -y install $OSG_URL \
2226
epel-release \

0 commit comments

Comments
 (0)