From 4ee79fc568f90a027caee32281711c63a6d891af Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Thu, 14 Jun 2018 16:35:25 -0500 Subject: [PATCH] Image: update image makefile to use host-networking This PS updates the makefile to use host-networking, allowing simple build on systems not using dockers iptables. Change-Id: I71b07499ca38243ff6c7c86f6427348036384547 Signed-off-by: Pete Birley --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0697ab9..47c091a 100644 --- a/Makefile +++ b/Makefile @@ -65,9 +65,9 @@ helm-install: .PHONY: build build: ifeq ($(USE_PROXY), true) - docker build -t $(IMAGE) --label $(LABEL) -f $(IMAGE_DIR)/Dockerfile --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) --build-arg http_proxy=$(PROXY) --build-arg https_proxy=$(PROXY) $(IMAGE_DIR) + docker build -t $(IMAGE) --network=host --label $(LABEL) -f $(IMAGE_DIR)/Dockerfile --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) --build-arg http_proxy=$(PROXY) --build-arg https_proxy=$(PROXY) $(IMAGE_DIR) else - docker build -t $(IMAGE) --label $(LABEL) --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) -f $(IMAGE_DIR)/Dockerfile $(IMAGE_DIR) + docker build -t $(IMAGE) --network=host --label $(LABEL) --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) -f $(IMAGE_DIR)/Dockerfile $(IMAGE_DIR) endif ifeq ($(PUSH_IMAGE), true) docker push $(IMAGE)