Ver código fonte

Merge pull request #4904 from creack/make_dev

Add "BINDDIR" variable to facilitate having a shell with the full source tree bind-mounted
Tianon Gravi 11 anos atrás
pai
commit
527bb5e960
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      Makefile

+ 6 - 1
Makefile

@@ -3,7 +3,12 @@
 GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
 GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
 DOCKER_IMAGE := docker:$(GIT_BRANCH)
 DOCKER_IMAGE := docker:$(GIT_BRANCH)
 DOCKER_DOCS_IMAGE := docker-docs:$(GIT_BRANCH)
 DOCKER_DOCS_IMAGE := docker-docs:$(GIT_BRANCH)
-DOCKER_RUN_DOCKER := docker run --rm -i -t --privileged -e TESTFLAGS -v "$(CURDIR)/bundles:/go/src/github.com/dotcloud/docker/bundles" "$(DOCKER_IMAGE)"
+
+# to allow `make BINDDIR=. shell`
+BINDDIR := bundles
+
+DOCKER_RUN_DOCKER := docker run --rm -i -t --privileged -e TESTFLAGS -v "$(CURDIR)/$(BINDDIR):/go/src/github.com/dotcloud/docker/$(BINDDIR)" "$(DOCKER_IMAGE)"
+
 
 
 default: binary
 default: binary