Clean up build network on failure

This commit is contained in:
Arthur Barr
2017-11-21 15:28:03 +00:00
parent 099397442b
commit 5e787ba4cf

View File

@@ -127,11 +127,7 @@ define docker-build-mq
--label IBM_PRODUCT_NAME=$5 \ --label IBM_PRODUCT_NAME=$5 \
--label IBM_PRODUCT_VERSION=$6 \ --label IBM_PRODUCT_VERSION=$6 \
--build-arg MQ_PACKAGES="$(MQ_PACKAGES)" \ --build-arg MQ_PACKAGES="$(MQ_PACKAGES)" \
. . ; $(DOCKER) kill $(BUILD_SERVER_CONTAINER) && $(DOCKER) network rm build
# Stop the web server (will also remove the container)
$(DOCKER) kill $(BUILD_SERVER_CONTAINER)
# Delete the temporary network
$(DOCKER) network rm build
endef endef
# .PHONY: build-advancedserver-903 # .PHONY: build-advancedserver-903