Merge pull request #888 from weaveworks/sudo

Don't need sudo when DOCKER_HOST is tcp.
This commit is contained in:
Tom Wilkie
2016-02-02 07:22:39 -08:00

View File

@@ -1,7 +1,7 @@
.PHONY: all deps static clean client-lint client-test client-sync backend frontend shell lint
# If you can use Docker without being root, you can `make SUDO= <target>`
SUDO=sudo -E
SUDO=$(shell (echo "$$DOCKER_HOST" | grep "tcp://" >/dev/null) || echo "sudo -E")
DOCKERHUB_USER=weaveworks
SCOPE_EXE=prog/scope
SCOPE_IMAGE=$(DOCKERHUB_USER)/scope