From 2e91dc65e490441b5c186e7a5e47df965caac2c3 Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Sat, 23 Mar 2024 10:33:22 +0900 Subject: dockerTools: add streamed image as passthru to buildLayeredImage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is convenient for debugging the underlying streamed image used by `dockerTools.buildLayeredImage`. Here's an example of how you might use this: ```console $ nix repl ./. nix-repl> dockerTools.examples.nginx.passthru.stream «derivation /nix/store/9zczmlp2kraszx4ssmh6fawnlnsa5a4n-stream-nginx-container.drv» ``` --- pkgs/build-support/docker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index ea464ebea18c8..146de2b7b3d8f 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -523,7 +523,7 @@ rec { runCommand "${baseNameOf name}.tar${compress.ext}" { inherit (stream) imageName; - passthru = { inherit (stream) imageTag; }; + passthru = { inherit (stream) imageTag; inherit stream; }; nativeBuildInputs = compress.nativeInputs; } "${stream} | ${compress.compress} > $out" ); -- cgit 1.4.1