If "DOCKER_HOST" is set, we can usually assume the user is connecting to a remote Docker and thus not bind mount anything by default (meaning the Makefile will more often DWIM for our users).
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
| ... | ... |
@@ -1,7 +1,8 @@ |
| 1 | 1 |
.PHONY: all binary build cross default docs docs-build docs-shell shell test test-unit test-integration test-integration-cli validate |
| 2 | 2 |
|
| 3 | 3 |
# to allow `make BINDDIR=. shell` or `make BINDDIR= test` |
| 4 |
-BINDDIR := bundles |
|
| 4 |
+# (default to no bind mount if DOCKER_HOST is set) |
|
| 5 |
+BINDDIR := $(if $(DOCKER_HOST),,bundles) |
|
| 5 | 6 |
# to allow `make DOCSPORT=9000 docs` |
| 6 | 7 |
DOCSPORT := 8000 |
| 7 | 8 |
|