Don't need sudo when DOCKER_HOST is tcp.

This commit is contained in:
Tom Wilkie
2016-01-29 14:41:25 -08:00
parent c16f0d7f40
commit f4c582a7b3

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