Skip to content

Commit c1f0aea

Browse files
committed
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.
1 parent 78a4737 commit c1f0aea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/docker/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ library:
159159
previous=$$(echo $$mod | tr -d '.0123456789-'); \
160160
done
161161
162+
diff: $(addprefix diff-, $(MODVERSIONS))
163+
164+
diff-%:
165+
@echo container-diff diff --type file daemon://$(CONTAINER_$*) daemon://unit:$(VERSION)-$*
166+
162167
all: $(addprefix Dockerfile., $(MODVERSIONS))
163168
164169
clean:

0 commit comments

Comments
 (0)