浏览代码

Update classic Docker location depending on OS.

Adding support for devs on WSL2 and Linux.
Chad Metcalf 5 年之前
父节点
当前提交
39f2093827
共有 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