From 2fc037c81e79e4ed42a096681709c33ee85eb218 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Fri, 12 Aug 2016 13:18:15 -0400 Subject: [PATCH] Enable docker host discovery to work across Mac, Linux --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d37a91..b6420e9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -DHOST = $(shell echo $$(docker-machine ip)) +UNAME := $(shell uname) +ifeq ($(UNAME), Darwin) + DHOST := $(shell echo $$(docker-machine ip)) +else + DHOST := 127.0.0.1 +endif all: get-deps build