Skip to content

Commit

Permalink
fix(nix): compress layers with zstandard
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Jul 6, 2024
1 parent 129eb72 commit 667a93d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix/containers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
# created = "now";

maxLayers = 118;
compressor = "zstd";

contents = devcontainerContents;
config = makeContainerConfig {
Expand All @@ -182,6 +183,7 @@
# created = "now";

maxLayers = 118;
compressor = "zstd";

contents = devcontainerContents;
# runAsRoot = ''
Expand Down Expand Up @@ -209,6 +211,7 @@ in rec {
name = "${packageName}";
tag = "latest";
maxLayers = 121;
compressor = "zstd";
fromImage = baseContainerImage;
contents = [packageGitRepoToContainer];
config = {
Expand All @@ -224,6 +227,7 @@ in rec {
name = "${packageName}dev";
tag = "latest";
maxLayers = 121;
compressor = "zstd";
fromImage = baseDevContainerImage;
contents = [packageGitRepoToContainer];
config = {
Expand Down

0 comments on commit 667a93d

Please sign in to comment.