Browse code

Add DOCKER_BUILD_ARGS support for make build

We always need proxy for build, so we always use "docker build"
command instead of "make build", but now for some reasons, we need
macro defined in Makefile, so it would be helpful if we can use
"make build" without touching Dockerfile.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>

Qiang Huang authored on 2016/01/12 16:15:17
Showing 1 changed files
... ...
@@ -73,7 +73,7 @@ binary: build
73 73
 	$(DOCKER_RUN_DOCKER) hack/make.sh binary
74 74
 
75 75
 build: bundles
76
-	docker build -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
76
+	docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
77 77
 
78 78
 bundles:
79 79
 	mkdir bundles