Skip to content

Commit

Permalink
add cmscon/osg
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Oct 8, 2024
1 parent 483df82 commit f32c8d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ It is also possible to use the HTCondor Python bindings inside a container.
This requires correctly specifying the HTCondor configuration.
A simple approach is provided in [bind_condor.sh](./bind_condor.sh).
Support is currently provided for the cmslpc cluster at Fermilab, and the CMS Connect and OSG clusters hosted at UChicago.
### Usage
In your `.bashrc`:
Expand Down
8 changes: 7 additions & 1 deletion bind_condor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ if [ "$COMMAND_NAME" = "$(basename $LPC_CONDOR_LOCAL)" ]; then
exit $?
fi

OSG_CONDOR_CONFIG=/etc/condor/condor_config
OSG_CONDOR_LOCAL=/usr/share/condor/config.d,/etc/condor/config.d

if [[ "$(uname -a)" == *cms*.fnal.gov* ]]; then
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${LPC_CONDOR_CONFIG},${LPC_CONDOR_LOCAL}:${LPC_CONDOR_LOCAL}.orig,${COMMAND_PATH}:${LPC_CONDOR_LOCAL}
export APPTAINERENV_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
export APPTAINERENV_CONDOR_CONFIG=${LPC_CONDOR_CONFIG}
elif [[ "$(uname -a)" == *.uscms.org* ]] || [[ "$(uname -a)" == *.osg-htc.org* ]]; then
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${OSG_CONDOR_CONFIG},${OSG_CONDOR_LOCAL}
export APPTAINERENV_CONDOR_CONFIG=${OSG_CONDOR_CONFIG}
fi

0 comments on commit f32c8d2

Please sign in to comment.