Преглед изворни кода

Merge pull request #208 from metcalfc/wsl2

Update classic Docker location depending on OS.
Djordje Lukic пре 5 година
родитељ
комит
f19fe9e188
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      Makefile

+ 8 - 0
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