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>
Upstream-commit: d104ddb564b636631c82955e8a6749305e7afee8
Component: engine
This commit is contained in:
Qiang Huang
2016-01-12 15:15:17 +08:00
parent 3340505b84
commit b792f5e1ed

View File

@ -73,7 +73,7 @@ binary: build
$(DOCKER_RUN_DOCKER) hack/make.sh binary
build: bundles
docker build -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
bundles:
mkdir bundles