From 5e787ba4cf91f4ab86e547525cf5f2c8686298fe Mon Sep 17 00:00:00 2001 From: Arthur Barr Date: Tue, 21 Nov 2017 15:28:03 +0000 Subject: [PATCH] Clean up build network on failure --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f777d1a..1662bff 100644 --- a/Makefile +++ b/Makefile @@ -127,11 +127,7 @@ define docker-build-mq --label IBM_PRODUCT_NAME=$5 \ --label IBM_PRODUCT_VERSION=$6 \ --build-arg MQ_PACKAGES="$(MQ_PACKAGES)" \ - . - # Stop the web server (will also remove the container) - $(DOCKER) kill $(BUILD_SERVER_CONTAINER) - # Delete the temporary network - $(DOCKER) network rm build + . ; $(DOCKER) kill $(BUILD_SERVER_CONTAINER) && $(DOCKER) network rm build endef # .PHONY: build-advancedserver-903