From 130cb87ec9d25cfdd05f7005725df451a6832c47 Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Fri, 12 Jun 2020 16:37:42 -0700 Subject: [PATCH] Add a target to run docker serve It documents how to use it and just makes it easy. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 78bf00fb..2e9aa93d 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,10 @@ cache-clear: ## Clear the builder cache lint: ## run linter(s) @docker build . --target lint +serve: cli ## start server + @./bin/docker serve --address unix:///tmp/backend.sock classic-link: ## create docker-classic symlink if does not already exist - ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin/docker-classic + ln -s $(CLASSIC_DOCKER) /usr/local/bin/docker-classic help: ## Show help @echo Please specify a build target. The choices are: @@ -67,4 +69,4 @@ help: ## Show help FORCE: -.PHONY: all protos cli e2e-local cross test cache-clear lint classic-link help +.PHONY: all protos cli e2e-local cross test cache-clear lint serve classic-link help