Skip to content

Commit

Permalink
Specify ro and rw for binds
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 23, 2024
1 parent d633afc commit bc8435a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/slurm/arrayexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ def get_run_cli(benchmark, args, tempdir, resultdir):
"singularity",
"exec",
"-B",
"/sys/fs/cgroup:/sys/fs/cgroup",
"/sys/fs/cgroup:/sys/fs/cgroup:rw",
"-B",
f"{basedir}",
f"{basedir}:{basedir}:ro",
"-B",
f"{os.getcwd()}:/lower",
f"{os.getcwd()}:/lower:ro",
"--no-home",
"-B",
f"{tempdir}:/overlay",
f"{tempdir}:/overlay:rw",
"--fusemount",
f"container:fuse-overlayfs -o lowerdir=/lower -o upperdir=/overlay/upper -o workdir=/overlay/work {os.getcwd()}",
singularity,
Expand Down

0 comments on commit bc8435a

Please sign in to comment.