Skip to content

Commit 4bd54c9

Browse files
authored
Merge pull request #1085 from afbjorklund/singularity-tmpfs
For apptainer, move TMPDIR away from tmpfs
2 parents 0b86785 + 22b4887 commit 4bd54c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/apptainer-rootful.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ provision:
3131
set -eux -o pipefail
3232
command -v apptainer >/dev/null 2>&1 && exit 0
3333
dnf -y install apptainer apptainer-suid
34+
# See https://fedoraproject.org/wiki/Features/tmp-on-tmpfs
35+
echo "APPTAINER_TMPDIR=/var/tmp" > /etc/profile.d/apptainer.sh
36+
echo "export APPTAINER_TMPDIR" >> /etc/profile.d/apptainer.sh
3437
probes:
3538
- script: |
3639
#!/bin/bash

examples/apptainer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ provision:
2525
set -eux -o pipefail
2626
command -v apptainer >/dev/null 2>&1 && exit 0
2727
dnf -y install apptainer
28+
# See https://fedoraproject.org/wiki/Features/tmp-on-tmpfs
29+
echo "APPTAINER_TMPDIR=/var/tmp" > /etc/profile.d/apptainer.sh
30+
echo "export APPTAINER_TMPDIR" >> /etc/profile.d/apptainer.sh
2831
probes:
2932
- script: |
3033
#!/bin/bash

0 commit comments

Comments
 (0)