Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
dockerTools: split raw and cooked images #75810
Uses passthru and lazy evaluation to separately create raw and cooked
Motivation for this change
Building large images with multiple layers requires several repeated iterations of tar/untar and sha256sum of layers resulting in O(n^2) performance. This is a WIP to bring much faster builds to dockerTools.
Ideally this should not change existing semantics, just speed up builds and provide some useful caching behavior and passthru attributes.
As a WIP there are some extra echo/printf for debugging and understanding purposes.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
zimbatm left a comment
On principle, this is great. I always wished that the outputs weren't compressed since it creates so much churn in the nix store and is not really necessary when using skopeo.
This needs a bit more testing to make sure that it works.