From 13995c9468297ebf58997a0498e0627fcef96f23 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Mon, 20 Jan 2025 10:49:20 +0100 Subject: [PATCH] Set X509_USER_KEY and X509_USER_CERT for lumi and pass these variables to container --- docker_launcher.sh | 2 +- lumi/get_slot.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker_launcher.sh b/docker_launcher.sh index fadd4a589b9..afc3c372bd6 100755 --- a/docker_launcher.sh +++ b/docker_launcher.sh @@ -108,7 +108,7 @@ if [ "X$DOCKER_IMG" != X -a "X$RUN_NATIVE" = "X" ]; then case $XUSER in cmsbld ) DOCKER_OPT="${DOCKER_OPT} -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group" ;; esac - for e in $DOCKER_JOB_ENV GIT_CONFIG_NOSYSTEM WORKSPACE BUILD_URL BUILD_NUMBER JOB_NAME NODE_NAME NODE_LABELS DOCKER_IMG RUCIO_ACCOUNT X509_USER_PROXY; do DOCKER_OPT="${DOCKER_OPT} -e $e"; done + for e in $DOCKER_JOB_ENV GIT_CONFIG_NOSYSTEM WORKSPACE BUILD_URL BUILD_NUMBER JOB_NAME NODE_NAME NODE_LABELS DOCKER_IMG RUCIO_ACCOUNT X509_USER_PROXY X509_USER_KEY X509_USER_CERT; do DOCKER_OPT="${DOCKER_OPT} -e $e"; done if [ "${PYTHONPATH}" != "" ] ; then DOCKER_OPT="${DOCKER_OPT} -e PYTHONPATH" ; fi for m in $(echo $MOUNT_POINTS,/etc/localtime,${BUILD_BASEDIR},/home/$XUSER | tr ',' '\n') ; do x=$(echo $m | sed 's|:.*||') diff --git a/lumi/get_slot.sh b/lumi/get_slot.sh index e7ea013b723..770cdc47044 100755 --- a/lumi/get_slot.sh +++ b/lumi/get_slot.sh @@ -38,6 +38,8 @@ klist || true export X509_CERT_DIR=/cvmfs/grid.cern.ch/etc/grid-security/certificates export X509_VOMS_DIR=/cvmfs/grid.cern.ch/etc/grid-security/vomsdir export VOMS_USERCONF=/cvmfs/grid.cern.ch/etc/grid-security/vomses +export X509_USER_KEY=$HOME/cmsbuild/.globus/userkey.pem +export X509_USER_CERT=$HOME/cmsbuild/.globus/usercert.pem echo "#########################################"