[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] TMPDIR variable in singularity

I looked a bit into the HTCondor code. At https://github.com/htcondor/htcondor/blob/dfc8116de7f4617fc06b21898c3722dedffcfd86/src/condor_starter.V6.1/singularity.cpp#L207 some variables are updated. I added the code to update the $TMPDIR variable like the others and tested it. The variable changed inside the singularity container. I used singularity version 2.5.2.



On 4/12/19 2:57 PM, Steffen Grunewald wrote:
On Fri, 2019-04-12 at 14:47:36 +0200, Matthias Schnepf wrote:
Hi all,

I try to run jobs inside singularity via HTCondor. Some of our jobs need the
environment variable TMPDIR. I saw that TMP and TEMP is "translated" to a
path inside the container. Is it expected that the TMPDIR is not
"translated" to the corresponding path inside the container?
I've found that $TMPDIR would be set by singularity, so it doesn't make it
from the external environment to the internal one.

$WORKDIR, $RUNDIR etc are not tampered with.

This should be documented somewhere?

Cheers, Steffen