mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Pass through build APT_MIRROR as separate var
DOCKER_BUILD_APT_MIRROR This allows passthrough of other options like HTTP_PROXY from DOCKER_BUILD_ARGS to work on all builds (for example, ensure-syscall-test) when APT_MIRROR is set. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
bf3d017f08
commit
39c87c79c8
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -59,6 +59,7 @@ DOCKER_DOCS_IMAGE := docker-docs$(if $(GIT_BRANCH_CLEAN),:$(GIT_BRANCH_CLEAN))
|
|||
DOCKER_PORT_FORWARD := $(if $(DOCKER_PORT),-p "$(DOCKER_PORT)",)
|
||||
|
||||
DOCKER_FLAGS := docker run --rm -i --privileged $(DOCKER_ENVS) $(DOCKER_MOUNT) $(DOCKER_PORT_FORWARD)
|
||||
BUILD_APT_MIRROR := $(if $(DOCKER_BUILD_APT_MIRROR),--build-arg APT_MIRROR=$(DOCKER_BUILD_APT_MIRROR))
|
||||
|
||||
# if this session isn't interactive, then we don't want to allocate a
|
||||
# TTY, which would fail, but if it is interactive, we do want to attach
|
||||
|
@ -79,7 +80,7 @@ binary: build ## build the linux binaries
|
|||
$(DOCKER_RUN_DOCKER) hack/make.sh binary
|
||||
|
||||
build: bundles init-go-pkg-cache
|
||||
docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
|
||||
docker build ${BUILD_APT_MIRROR} ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
|
||||
|
||||
bundles:
|
||||
mkdir bundles
|
||||
|
|
Loading…
Reference in a new issue