mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 06:55:03 +00:00
One
This commit is contained in:
22
blog/posts/Makefile
Normal file
22
blog/posts/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
GOPATH:=$(shell go env GOPATH)
|
||||
MODIFY=Mgithub.com/micro/go-micro/api/proto/api.proto=github.com/micro/go-micro/v3/api/proto
|
||||
|
||||
.PHONY: proto
|
||||
proto:
|
||||
|
||||
protoc --proto_path=. --micro_out=${MODIFY}:. --go_out=${MODIFY}:. proto/post/post.proto
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build: proto
|
||||
|
||||
go build -o post-service *.go
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v ./... -cover
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
docker build . -t post-service:latest
|
||||
Reference in New Issue
Block a user