Skip to content

Commit

Permalink
Squashed 'neurodesk/transparent-singularity/' changes from 729bda6..c…
Browse files Browse the repository at this point in the history
…87e470

c87e470 added matlabs module file

git-subtree-dir: neurodesk/transparent-singularity
git-subtree-split: c87e47002a5c331708fcf6de68a57ae19a97c4cf
  • Loading branch information
actions-user committed Sep 11, 2024
1 parent e9e2e72 commit 68d1f18
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 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 68d1f18

Please sign in to comment.