From ba32ae9bba3baa6631e7e45731bb7b1b7b612bbd Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Mon, 30 Jan 2017 10:51:26 +0100 Subject: [PATCH] =?UTF-8?q?Bind=20mount=20`.git`=20=F0=9F=91=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vincent Demeester Upstream-commit: 617be0ef2bbbce6f0e908734f8a5f2b6a7b93877 Component: engine --- components/engine/.dockerignore | 1 - components/engine/Makefile | 2 +- components/engine/hack/make.sh | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/components/engine/.dockerignore b/components/engine/.dockerignore index b605b08c61..2ce8321a7e 100644 --- a/components/engine/.dockerignore +++ b/components/engine/.dockerignore @@ -1,5 +1,4 @@ bundles -integration-cli/bundles .gopath vendor/pkg .go-pkg-cache diff --git a/components/engine/Makefile b/components/engine/Makefile index 7fe4872b04..65589227a8 100644 --- a/components/engine/Makefile +++ b/components/engine/Makefile @@ -52,7 +52,7 @@ DOCKER_MOUNT := $(if $(BIND_DIR),-v "$(CURDIR)/$(BIND_DIR):/go/src/github.com/do # This allows the test suite to be able to run without worrying about the underlying fs used by the container running the daemon (e.g. aufs-on-aufs), so long as the host running the container is running a supported fs. # The volume will be cleaned up when the container is removed due to `--rm`. # Note that `BIND_DIR` will already be set to `bundles` if `DOCKER_HOST` is not set (see above BIND_DIR line), in such case this will do nothing since `DOCKER_MOUNT` will already be set. -DOCKER_MOUNT := $(if $(DOCKER_MOUNT),$(DOCKER_MOUNT),-v /go/src/github.com/docker/docker/bundles) +DOCKER_MOUNT := $(if $(DOCKER_MOUNT),$(DOCKER_MOUNT),-v /go/src/github.com/docker/docker/bundles) -v $(CURDIR)/.git:/go/src/github.com/docker/docker/.git # This allows to set the docker-dev container name DOCKER_CONTAINER_NAME := $(if $(CONTAINER_NAME),--name $(CONTAINER_NAME),) diff --git a/components/engine/hack/make.sh b/components/engine/hack/make.sh index 8b2a4a975d..7dd86639da 100755 --- a/components/engine/hack/make.sh +++ b/components/engine/hack/make.sh @@ -85,7 +85,6 @@ elif command -v git &> /dev/null && [ -d .git ] && git rev-parse &> /dev/null; t git status --porcelain --untracked-files=no echo "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" fi - ! BUILDTIME=$(date --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/') &> /dev/null else echo >&2 'error: .git directory missing and DOCKER_GITCOMMIT not specified' echo >&2 ' Please either build with the .git directory accessible, or specify the'