singularity: enable setting vm mem in buildImage

This commit is contained in:
Chris Hammill 2022-03-03 19:54:17 +00:00
parent 0c408a087b
commit 976d703d23

View file

@ -38,7 +38,8 @@ rec {
contents ? [],
diskSize ? 1024,
runScript ? "#!${stdenv.shell}\nexec /bin/sh",
runAsRoot ? null
runAsRoot ? null,
memSize ? 512
}:
let layer = mkLayer {
inherit name;
@ -54,6 +55,7 @@ rec {
size = diskSize;
fullName = "singularity-run-disk";
};
inherit memSize;
}
''
rm -rf $out