Merge pull request #162673 from cfhammill/cfh/singularity-fix

singularity: enable setting vm mem in buildImage
This commit is contained in:
Justin Bedő 2022-03-04 21:44:50 +11:00 committed by GitHub
commit d0c44f5955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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