foo test service

This commit is contained in:
2020-06-30 17:18:54 +08:00
parent 769d7ce330
commit 4a81768f2b
13 changed files with 872 additions and 4 deletions

20
services/foo/Makefile Normal file
View File

@ -0,0 +1,20 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: proto
proto:
protoc --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/foo/foo.proto
.PHONY: build
build: proto
go build -o foo-srv main.go plugin.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t foo-srv:latest