about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-08-17 12:01:28 +0000
committerGitHub <noreply@github.com>2022-08-17 12:01:28 +0000
commit954d3734e9adf3d19ef2cf340a9cf14b9f66080a (patch)
treea3c6ac74d3d5078dd326dd323686d2889f7cdba7 /doc
parentaf42060d6168d6eab751f33685c4b3fa1fab2027 (diff)
parentc085fe3e5ae411bcce050e61a84b418e38c8235b (diff)
downloadnixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar.gz
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar.bz2
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar.lz
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar.xz
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.tar.zst
nixlib-954d3734e9adf3d19ef2cf340a9cf14b9f66080a.zip
Merge master into staging-next
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/images/dockertools.section.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/builders/images/dockertools.section.md b/doc/builders/images/dockertools.section.md
index d8deb6cfbc8c..6fdd4b5cadd3 100644
--- a/doc/builders/images/dockertools.section.md
+++ b/doc/builders/images/dockertools.section.md
@@ -36,6 +36,9 @@ buildImage {
     WorkingDir = "/data";
     Volumes = { "/data" = { }; };
   };
+
+  diskSize = 1024;
+  buildVMMemorySize = 512;
 }
 ```
 
@@ -59,6 +62,10 @@ The above example will build a Docker image `redis/latest` from the given base i
 
 - `config` is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
 
+- `diskSize` is used to specify the disk size of the VM used to build the image in megabytes. By default it's 1024 MiB.
+
+- `buildVMMemorySize` is used to specify the memory size of the VM to build the image in megabytes. By default it's 512 MiB.
+
 After the new layer has been created, its closure (to which `contents`, `config` and `runAsRoot` contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied.
 
 At the end of the process, only one new single layer will be produced and added to the resulting image.