Files
services/helloworld/Makefile
2021-03-18 10:56:42 +00:00

26 lines
488 B
Makefile

GOPATH:=$(shell go env GOPATH)
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto
@redoc-cli bundle api-helloworld.json
.PHONY: build
build: proto
go build -o helloworld-srv *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t helloworld-srv:latest