aboutsummaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-07 01:35:26 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-09 20:33:24 -0700
commit9bb7fb8f698d6ef4d42d068a576abd98d36f8239 (patch)
tree7912d62732f96c4906635f45faaf6f96ea04a306 /releng
parentff95b980d4913e90bc334227f8f3f7b3daf18b36 (diff)
Rewrite docker to be sensible and smaller
I have checked the image can build things and inspected `diff -ru` compared to the old image. As far as I can tell it is more or less the same besides the later git change. Layers are now 65MB or less, and we aren't against the maxLayers limit for the broken automatic layering to do anything but shove one store path in a layer (which is good behaviour, actually). This uses nix2container which streams images, so the build time is much shorter. I have also taken the opportunity to, in addition to fixing the 400MB single layer (terrible, and what motivated this in the first place), delete about 200MB of closure size inflicted by git vs gitMinimal causing both perl and python to get into closure. People mostly use this thing for CI, so I don't really think you need advanced git operations, and large git can be added at the user side if really motivated. With love for whichever container developer somewhat ironically assumed that one would not run skopeo in a minimal container that doesn't have a /var/tmp. Fixes: https://git.lix.systems/lix-project/lix/issues/378 Change-Id: Icc3aa20e64446276716fbbb87535fd5b50628010
Diffstat (limited to 'releng')
-rw-r--r--releng/release-jobs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/releng/release-jobs.nix b/releng/release-jobs.nix
index e693a3a81..4db0baed3 100644
--- a/releng/release-jobs.nix
+++ b/releng/release-jobs.nix
@@ -33,7 +33,7 @@ let
targetName = "*.tar.xz";
}) systems
++ builtins.map (system: {
- target = hydraJobs.dockerImage.${system};
+ target = hydraJobs.dockerImage.${system}.tarball;
targetName = "image.tar.gz";
rename = "lix-${lix.version}-docker-image-${system}.tar.gz";
}) dockerSystems;