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.
This commit is contained in:
Konstantin Pavlov
2023-08-22 14:55:10 -07:00
parent 78a473743d
commit c1f0aeaea4

View File

@@ -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: