Skip to content

Commit

Permalink
chore: Add apptainer variables to lxplus9 deployment
Browse files Browse the repository at this point in the history
* Add APPTAINER_CACHEDIR as lxplus9 uses apptainer.
* Set SINGULARITY_CACHEDIR to be APPTAINER_CACHEDIR.
* Set PACKTIVITY_CONTAINER_RUNTIME to apptainer.
* Add notice to loging to private cotnainer registiries before use.
   - Avoid issues with login problems later.
  • Loading branch information
matthewfeickert committed Nov 9, 2023
1 parent e6fadeb commit f27483e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/deploy_lxplus9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ cat << EOF > ~recast/public/setup_"${RECAST_ATLAS_VERSION}".sh
export RECAST_DEFAULT_RUN_BACKEND=local
export RECAST_DEFAULT_BUILD_BACKEND=kubernetes
export PACKTIVITY_CONTAINER_RUNTIME=singularity
export SINGULARITY_CACHEDIR="/tmp/\$(whoami)/singularity"
mkdir -p "\${SINGULARITY_CACHEDIR}"
export APPTAINER_CACHEDIR="/tmp/\${USER}/apptainer"
export SINGULARITY_CACHEDIR="\${APPTAINER_CACHEDIR}"
mkdir -p "\${APPTAINER_CACHEDIR}"
# https://twitter.com/lukasheinrich_/status/1021398718996713475
export LC_ALL=en_US.utf-8
Expand All @@ -65,6 +66,9 @@ export LANG=en_US.utf-8
\$(recast catalogue add /eos/project/r/recast/atlas/catalogue)
export KUBECONFIG=/eos/project/r/recast/atlas/cluster/clusterconfig
export PATH="\${PATH}:~recast/public/bin"
echo -e "\n# It is recommended to login to any private container registry now."
echo -e "# Example:\n# apptainer remote login --username \"\${USER}\" docker://gitlab-registry.cern.ch"
EOF
# Link public setup script to this version
Expand Down

0 comments on commit f27483e

Please sign in to comment.