diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-08-22 14:55:10 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-08-22 14:55:10 -0700 |
commit | c1f0aeaea4ab15073290e1677e23cd027da1b375 (patch) | |
tree | 62c33ef3f4fd27fab9896c620f74b1e353533762 /pkg/docker/Makefile | |
parent | 78a473743d98cd74dd3408a6a7800ca0d3c1a697 (diff) | |
download | unit-c1f0aeaea4ab15073290e1677e23cd027da1b375.tar.gz unit-c1f0aeaea4ab15073290e1677e23cd027da1b375.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | pkg/docker/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
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: |