Closed marcelzwiers closed 3 months ago
thank you for sending that pull request. I am hoping to be able to test this next week. Did you test your changes on your system and did it work? I think it also needs mount points in addition for this to work?
Yes, you are right. I copied over what I had on our HPC, but indeed for us the non-default tmpdir is automatically mounted on all apptainers. So perhaps it is better to script this and check if any of the TMPDIR variables (as used in this PR) are non-empty and then bindmount them as /tmp
?
So something like:
CUSTOMTMPDIR="/tmp"
for CUSTOMDIR in $TMP $TMPDIR $TEMP $TEMPDIR; do
CUSTOMTMPDIR=$CUSTOMDIR
done
apptainer run --cleanenv --no-mount tmp --bind ${CUSTOMTMPDIR}:/tmp etc
cool! Does this work on your system now? Then I test on the HPCs I have access to and we can make it available for all
If I manually edit our singularity run-scripts likewise then it works for us :-)
thank you for confirming :)
I didn't look into setting this bind option centrally, perhaps that is also possible as an alternative
yes, that would also be possible
Indeed, I now see that there exists a variable for this, i.e. APPTAINER_WORKDIR
(see here). But that also does something with the HOME directory?
I just tested the new run_fetch code and it works nicely :-)
See Github issue #11