Update list and get commands to use better choosing strategy;

refactor Makefile to use go mod vendoring and docker caching
This commit is contained in:
Mitchell 2019-06-01 13:32:11 -07:00
parent b2a41cf07c
commit 383a3aa1cd
9 changed files with 193 additions and 224 deletions

View file

@ -1,15 +1,14 @@
.PHONY: all build clean format test gen-certs-go
build: clean format
env CGO_ENABLED=0 go build -o ./bin/server ./cmd/server
build: clean gen-certs-go format
go build -mod=vendor -o ./bin/server ./cmd/server
rm ./cmd/server/certs.go
clean:
rm -rf ./bin
go mod tidy
docker: gen-certs-go
docker: install
docker-compose build
rm ./cmd/server/certs.go
local:
docker-compose up -d
@ -39,6 +38,10 @@ machine-rm:
format:
gofmt -w -s -l .
install:
go mod tidy
go mod vendor
install-spc:
go install ./cmd/spc