mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Do not required .git in the build context
- export DOCKER_GITCOMMIT in the Makefile - prioritize DOCKER_GITCOMMIT against the `git` command in `./hack/make.sh` - Also add `integration-cli/bundles` to gitignore (it's generated when using integration-cli shell) Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
3
Makefile
3
Makefile
@@ -10,6 +10,9 @@ export DOCKER_INCREMENTAL_BINARY
|
||||
DOCKER_OSARCH := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKER_ENGINE_OSARCH:-$$DOCKER_CLIENT_OSARCH}')
|
||||
DOCKERFILE := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKERFILE}')
|
||||
|
||||
DOCKER_GITCOMMIT := $(shell git rev-parse --short HEAD || echo unsupported)
|
||||
export DOCKER_GITCOMMIT
|
||||
|
||||
# env vars passed through directly to Docker's build scripts
|
||||
# to allow things like `make KEEPBUNDLE=1 binary` easily
|
||||
# `project/PACKAGERS.md` have some limited documentation of some of these
|
||||
|
||||
Reference in New Issue
Block a user