Skip to content

Commit

Permalink
Merge commit '68d1f18f5d68034124c83d9e033afa9a77a7a53b'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 11, 2024
2 parents 85b2537 + 68d1f18 commit 91cfd50
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions neurodesk/transparent-singularity/manual_module_files/2022a
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#%Module####################################################################
module-whatis matlab_2022a_20231207.simg
prepend-path PATH /cvmfs/neurodesk.ardc.edu.au/containers/matlab_2022a_20231207


# Append custom license paths so that a license can be stored outside the container
if { [info exists env(HOME)] } {
set additional_bind_paths "$env(HOME):/home/matlab/.matlab/R2022a_licenses,$env(HOME):/opt/matlab/R2022a/licenses"
}

if { ![info exists env(HOME)] } {
set additional_bind_paths "/tmp:/home/matlab/.matlab/R2022a_licenses,/tmp:/opt/matlab/R2022a/licenses"
}

if { [info exists env(SINGULARITY_BINDPATH)] } {
append-path -delim "," SINGULARITY_BINDPATH $additional_bind_paths
}

if { [info exists env(APPTAINER_BINDPATH)] } {
append-path -delim "," APPTAINER_BINDPATH $additional_bind_paths
}

if { ![info exists env(SINGULARITY_BINDPATH)] && ![info exists env(APPTAINER_BINDPATH)] } {
# Neither variable is set, so set SINGULARITY_BINDPATH, because it's backwards compatible with APPTAINER
setenv SINGULARITY_BINDPATH $additional_bind_paths
}

0 comments on commit 91cfd50

Please sign in to comment.