Browse Source

Merge "Image: update image makefile to use host-networking"

Zuul 10 months ago
parent
commit
b0b0ba021e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Makefile

+ 2
- 2
Makefile View File

@@ -65,9 +65,9 @@ helm-install:
65 65
 .PHONY: build
66 66
 build:
67 67
 ifeq ($(USE_PROXY), true)
68
-	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)
68
+	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)
69 69
 else
70
-	docker build -t $(IMAGE) --label $(LABEL) --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) -f $(IMAGE_DIR)/Dockerfile $(IMAGE_DIR)
70
+	docker build -t $(IMAGE) --network=host --label $(LABEL) --build-arg SSTREAM_IMAGE=$(SSTREAM_IMAGE) -f $(IMAGE_DIR)/Dockerfile $(IMAGE_DIR)
71 71
 endif
72 72
 ifeq ($(PUSH_IMAGE), true)
73 73
 	docker push $(IMAGE)

Loading…
Cancel
Save