summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-04-12 14:08:29 +0200
committerMathieu Othacehe <othacehe@gnu.org>2021-04-12 14:12:49 +0200
commit98bf60bf4ffa14a111bce5265a6299c1bcfd8351 (patch)
treee8c666385eda03d158cee2c45af962882ea0de42 /gnu/system
parent331666862cb56e285562d4e9898088c835b5b508 (diff)
system: vm: Add a memory-size argument to system-docker-image.
* gnu/system/vm.scm (system-docker-image): Add a memory-size argument and pass it to expression->derivation-in-linux-vm.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/vm.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 1efae7ff06..97adfa12fa 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -468,6 +468,7 @@ system that is passed to 'populate-root-file-system'."
(define* (system-docker-image os
#:key
(name "guix-docker-image")
+ (memory-size 256)
(register-closures? (has-guix-service-type? os))
shared-network?)
"Build a docker image. OS is the desired <operating-system>. NAME is the
@@ -561,6 +562,7 @@ the operating system."
(expression->derivation-in-linux-vm
name build
+ #:memory-size memory-size
#:make-disk-image? #f
#:single-file-output? #t
#:references-graphs `((,graph ,os)))))