Skip to content

Commit f32c8d2

Browse files
committed
add cmscon/osg
1 parent 483df82 commit f32c8d2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ It is also possible to use the HTCondor Python bindings inside a container.
147147
This requires correctly specifying the HTCondor configuration.
148148
A simple approach is provided in [bind_condor.sh](./bind_condor.sh).
149149
150+
Support is currently provided for the cmslpc cluster at Fermilab, and the CMS Connect and OSG clusters hosted at UChicago.
151+
150152
### Usage
151153
152154
In your `.bashrc`:

bind_condor.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ if [ "$COMMAND_NAME" = "$(basename $LPC_CONDOR_LOCAL)" ]; then
1111
exit $?
1212
fi
1313

14+
OSG_CONDOR_CONFIG=/etc/condor/condor_config
15+
OSG_CONDOR_LOCAL=/usr/share/condor/config.d,/etc/condor/config.d
16+
1417
if [[ "$(uname -a)" == *cms*.fnal.gov* ]]; then
1518
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${LPC_CONDOR_CONFIG},${LPC_CONDOR_LOCAL}:${LPC_CONDOR_LOCAL}.orig,${COMMAND_PATH}:${LPC_CONDOR_LOCAL}
16-
export APPTAINERENV_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
19+
export APPTAINERENV_CONDOR_CONFIG=${LPC_CONDOR_CONFIG}
20+
elif [[ "$(uname -a)" == *.uscms.org* ]] || [[ "$(uname -a)" == *.osg-htc.org* ]]; then
21+
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${OSG_CONDOR_CONFIG},${OSG_CONDOR_LOCAL}
22+
export APPTAINERENV_CONDOR_CONFIG=${OSG_CONDOR_CONFIG}
1723
fi

0 commit comments

Comments
 (0)