about summary refs log tree commit diff
path: root/tools/nixery/build-registry-image.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-08-08T19·57+0100
committerVincent Ambo <github@tazj.in>2019-08-08T20·15+0100
commitc727b3ca9ea44e5dbc2f4c7b280af26f8c53a526 (patch)
tree21e8a336c6f190333dfd656c14090283afc1b04a /tools/nixery/build-registry-image.nix
parent993fda337755e02e4505b0a85f14581baa8ed1d0 (diff)
chore(nix): Increase maximum number of layers to 96
This uses a significantly larger percentage of the total available
layers (125) than before, which means that cache hits for layers
become more likely between images.
Diffstat (limited to 'tools/nixery/build-registry-image.nix')
-rw-r--r--tools/nixery/build-registry-image.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/nixery/build-registry-image.nix b/tools/nixery/build-registry-image.nix
index 6a5312b444d0..255f1ca9b1d0 100644
--- a/tools/nixery/build-registry-image.nix
+++ b/tools/nixery/build-registry-image.nix
@@ -29,11 +29,10 @@
   packages ? "[]",
   # Optional bash script to run on the files prior to fixturizing the layer.
   extraCommands ? "", uid ? 0, gid ? 0,
-  # Docker's lowest maximum layer limit is 42-layers for an old
-  # version of the AUFS graph driver. We pick 24 to ensure there is
-  # plenty of room for extension. I believe the actual maximum is
-  # 128.
-  maxLayers ? 24,
+  # Docker's modern image storage mechanisms have a maximum of 125
+  # layers. To allow for some extensibility (via additional layers),
+  # the default here is set to something a little less than that.
+  maxLayers ? 96,
 
   # Configuration for which package set to use when building.
   #