mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
Merge pull request #162673 from cfhammill/cfh/singularity-fix
singularity: enable setting vm mem in buildImage
This commit is contained in:
commit
d0c44f5955
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user