From 3ff67256132febad4d039845e97db2ad4d55025d Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Fri, 8 Jan 2016 15:27:21 +0800 Subject: [PATCH] Make .ensure-syscall-test to use build-arg .ensure-syscall-test need to build an image, we have to add http_proxy and https_proxy to make it work. Inseted of adding http_proxy and https_proxy env to the Dockerfile, adding a DOCKER_BUILD_ARGS env to pass the build-arg is much more elegant. Signed-off-by: Lei Jitang --- hack/make/.ensure-syscall-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make/.ensure-syscall-test b/hack/make/.ensure-syscall-test index 9b54e0495e..20fe2dc4c2 100644 --- a/hack/make/.ensure-syscall-test +++ b/hack/make/.ensure-syscall-test @@ -4,5 +4,5 @@ set -e # Build a C binary for cloning a userns for seccomp tests # and compile it for target daemon if [ "$DOCKER_ENGINE_GOOS" = "linux" ]; then - docker build -qt syscall-test contrib/syscall-test > /dev/null + docker build ${DOCKER_BUILD_ARGS} -qt syscall-test contrib/syscall-test > /dev/null fi