diff --git a/workspaces/factory-workspace/Dockerfile b/workspaces/factory-workspace/Dockerfile index 08a429f..d5bd330 100644 --- a/workspaces/factory-workspace/Dockerfile +++ b/workspaces/factory-workspace/Dockerfile @@ -26,11 +26,11 @@ RUN ln -s /root/scripts/* /usr/local/bin # Dowload HTCondor tarballs # HTCondor 10.6.0 to test a more recent version on Alma9 -# HTCondor 9.0.18 to test alsp hybrid configurations on EL7 +# HTCondor 9.0.18 to test alsp hybrid configurations on EL7 (x86_64 only) RUN pushd /var/lib/gwms-factory/condor ;\ - wget https://research.cs.wisc.edu/htcondor/tarball/10/10.x/10.6.0/release/condor-10.6.0-x86_64_AlmaLinux9-stripped.tar.gz ;\ - tar -xf condor-10.6.0-x86_64_AlmaLinux9-stripped.tar.gz ;\ - rm -f condor-10.6.0-x86_64_AlmaLinux9-stripped.tar.gz ;\ + wget https://research.cs.wisc.edu/htcondor/tarball/10/10.x/10.6.0/release/condor-10.6.0-$(arch)_AlmaLinux9-stripped.tar.gz ;\ + tar -xf condor-10.6.0-$(arch)_AlmaLinux9-stripped.tar.gz ;\ + rm -f condor-10.6.0-$(arch)_AlmaLinux9-stripped.tar.gz ;\ wget https://research.cs.wisc.edu/htcondor/tarball/9.0/9.0.18/release/condor-9.0.18-x86_64_CentOS7-stripped.tar.gz ;\ tar -xf condor-9.0.18-x86_64_CentOS7-stripped.tar.gz ;\ rm -f condor-9.0.18-x86_64_CentOS7-stripped.tar.gz ;\ @@ -38,6 +38,7 @@ RUN pushd /var/lib/gwms-factory/condor ;\ # Deploy GlideinWMS Factory and HTCondor configuration COPY factory-workspace/config/glideinWMS.xml /etc/gwms-factory/glideinWMS.xml +RUN sed -i "s/\[ARCH\]/$(arch)/g" /etc/gwms-factory/glideinWMS.xml RUN chown gfactory:gfactory /etc/gwms-factory/glideinWMS.xml COPY shared/config/99-debug.conf /etc/condor/config.d/99-debug.conf COPY shared/config/99-cafile.conf /etc/condor/config.d/99-cafile.conf diff --git a/workspaces/factory-workspace/config/glideinWMS.xml b/workspaces/factory-workspace/config/glideinWMS.xml index e0172a1..b192c1c 100644 --- a/workspaces/factory-workspace/config/glideinWMS.xml +++ b/workspaces/factory-workspace/config/glideinWMS.xml @@ -79,7 +79,7 @@ - + @@ -119,11 +119,14 @@ - - - + + + + + diff --git a/workspaces/gwms-workspace/Dockerfile b/workspaces/gwms-workspace/Dockerfile index 7bd275b..b1625cc 100644 --- a/workspaces/gwms-workspace/Dockerfile +++ b/workspaces/gwms-workspace/Dockerfile @@ -3,7 +3,7 @@ # Selecting AlmaLinux 9 as the base OS FROM almalinux:9 -MAINTAINER Marco Mambelli "marcom@fnal.gov" +LABEL org.opencontainers.image.authors="marcom@fnal.gov" LABEL name="Base workspace with EL9, OSG 3.6 and base packages required by GlideinWMS and HEPCloud" # Installing some base packages, the CRB repo, needed by swig, and the EPEL (epel-release) and OSG repos @@ -23,7 +23,7 @@ RUN dnf install -y wget sed git yum-utils ;\ /bin/sed -i '/^enabled=1/a priority=99' /etc/yum.repos.d/epel.repo ;\ dnf install -y https://repo.opensciencegrid.org/osg/3.6/osg-3.6-el9-release-latest.rpm ;\ sed -i 's/\$basearch/x86_64/g' /etc/yum.repos.d/osg* - # TODO: remove the sed command above when OSG supports arm64 + # TODO: remove the sed command above when OSG supports aarch64 # Installing some system management RPMs/sw needed for containers (these are not needed for VMs) RUN dnf install -y cronie supervisor initscripts;\ diff --git a/workspaces/shared/scripts/link-git.sh b/workspaces/shared/scripts/link-git.sh index 91c9b92..383772d 100755 --- a/workspaces/shared/scripts/link-git.sh +++ b/workspaces/shared/scripts/link-git.sh @@ -58,18 +58,18 @@ if [[ -L /usr/lib/python${PYVER}/site-packages/glideinwms ]]; then fi # mv to *_rpm instead of rm -rf -[[ -n "$VERBOSE" ]] echo "Linking GlideinWMS library to repository in $GWMS_SRC_DIR" || true +[[ -n "$VERBOSE" ]] && echo "Linking GlideinWMS library to repository in $GWMS_SRC_DIR" || true mv /usr/lib/python${PYVER}/site-packages/glideinwms /usr/lib/python${PYVER}/site-packages/glideinwms_rpm ln -s "$GWMS_SRC_DIR" /usr/lib/python${PYVER}/site-packages/glideinwms if [[ -n "$IS_FACTORY" ]]; then - [[ -n "$VERBOSE" ]] echo "Linking Factory components to Git" || true + [[ -n "$VERBOSE" ]] && echo "Linking Factory components to Git" || true mv /var/lib/gwms-factory/creation /var/lib/gwms-factory/creation_rpm mv /var/lib/gwms-factory/web-base /var/lib/gwms-factory/web-base_rpm ln -s "$GWMS_SRC_DIR"/creation /var/lib/gwms-factory/creation ln -s "$GWMS_SRC_DIR"/creation/web_base /var/lib/gwms-factory/web-base fi if [[ -n "$IS_FRONTEND" ]]; then - [[ -n "$VERBOSE" ]] echo "Linking Frontend components to Git" || true + [[ -n "$VERBOSE" ]] && echo "Linking Frontend components to Git" || true mv /var/lib/gwms-frontend/creation /var/lib/gwms-frontend/creation_rpm mv /var/lib/gwms-frontend/web-base /var/lib/gwms-frontend/web-base_rpm ln -s "$GWMS_SRC_DIR"/creation /var/lib/gwms-frontend/creation