From c1f0aeaea4ab15073290e1677e23cd027da1b375 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Tue, 22 Aug 2023 14:55:10 -0700 Subject: Docker: added a container-diff helper. It's useful to check whether resulting images have unexpected build leftovers. Requires https://github.com/GoogleContainerTools/container-diff in $PATH. --- pkg/docker/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile index e3a48cff..bf4e67f2 100644 --- a/pkg/docker/Makefile +++ b/pkg/docker/Makefile @@ -159,6 +159,11 @@ library: previous=$$(echo $$mod | tr -d '.0123456789-'); \ done +diff: $(addprefix diff-, $(MODVERSIONS)) + +diff-%: + @echo container-diff diff --type file daemon://$(CONTAINER_$*) daemon://unit:$(VERSION)-$* + all: $(addprefix Dockerfile., $(MODVERSIONS)) clean: -- cgit