mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 17:18:37 +00:00
do not remove build containers
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
7
Makefile
7
Makefile
@@ -22,10 +22,11 @@ qemu-iso: Dockerfile.qemuiso alpine/mobylinux-bios.iso
|
||||
|
||||
test: Dockerfile.test alpine/initrd.img alpine/kernel/x86_64/vmlinuz64
|
||||
$(MAKE) -C alpine
|
||||
BUILD=$$( tar cf - $^ | docker build -f Dockerfile.test -q - ) && [ -n "$$BUILD" ] && \
|
||||
BUILD=$$( tar cf - $^ | docker build -f Dockerfile.test -q - ) && \
|
||||
[ -n "$$BUILD" ] && \
|
||||
echo "Built $$BUILD" && \
|
||||
touch test.log && \
|
||||
docker run --rm $$BUILD 2>&1 | tee -a test.log && \
|
||||
docker rmi --no-prune $$BUILD
|
||||
docker run --rm $$BUILD 2>&1 | tee -a test.log
|
||||
@cat test.log | grep -q 'Moby test suite PASSED'
|
||||
|
||||
TAG=$(shell git rev-parse HEAD)
|
||||
|
||||
Reference in New Issue
Block a user