summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-08-22 14:55:10 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-08-22 14:55:10 -0700
commitc1f0aeaea4ab15073290e1677e23cd027da1b375 (patch)
tree62c33ef3f4fd27fab9896c620f74b1e353533762 /pkg/docker
parent78a473743d98cd74dd3408a6a7800ca0d3c1a697 (diff)
downloadunit-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 'pkg/docker')
-rw-r--r--pkg/docker/Makefile5
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: