foo test service
This commit is contained in:
20
services/foo/Makefile
Normal file
20
services/foo/Makefile
Normal 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
|
Reference in New Issue
Block a user