From 39f2093827197f72b2b5d94231c99d5214ba70fb Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Fri, 12 Jun 2020 16:29:41 -0700 Subject: [PATCH] Update classic Docker location depending on OS. Adding support for devs on WSL2 and Linux. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 78bf00fb0..c8f16dc8d 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,14 @@ export DOCKER_BUILDKIT=1 +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Linux) + CLASSIC_DOCKER=/usr/bin/docker +endif +ifeq ($(UNAME_S),Darwin) + CLASSIC_DOCKER=/Applications/Docker.app/Contents/Resources/bin/docker +endif + all: cli protos: ## Generate go code from .proto files