meow
This commit is contained in:
parent
b2e88c3a69
commit
19a944b8f7
|
@ -110,7 +110,12 @@ let
|
||||||
cat /etc/localtime > $temp_dir/etc/localtime
|
cat /etc/localtime > $temp_dir/etc/localtime
|
||||||
cat /etc/resolv.conf > $temp_dir/etc/resolv.conf
|
cat /etc/resolv.conf > $temp_dir/etc/resolv.conf
|
||||||
|
|
||||||
singularity run -B "/work:/work,/scratch:/scratch,$temp_dir/nix-store.squashfs:/nix/store:image-src=/,$temp_dir/etc:/etc" --pid --uts --ipc container-base.sif
|
workdir="/work"
|
||||||
|
if [ ! -d "/work" ]; then
|
||||||
|
workdir="/projects"
|
||||||
|
fi
|
||||||
|
|
||||||
|
singularity run -B "/$workdir:/$workdir,/scratch:/scratch,$temp_dir/nix-store.squashfs:/nix/store:image-src=/,$temp_dir/etc:/etc" --pid --uts --ipc container-base.sif
|
||||||
'';
|
'';
|
||||||
in runCommand "hpc-files.d" {} ''
|
in runCommand "hpc-files.d" {} ''
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
|
|
Loading…
Reference in New Issue