Image service (#89)

This commit is contained in:
Janos Dobronszki
2021-05-05 11:15:40 +01:00
committed by GitHub
parent feb3550c7c
commit e563d6114b
15 changed files with 1133 additions and 5 deletions

26
image/Makefile Normal file
View File

@@ -0,0 +1,26 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=. proto/image.proto
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=. proto/image.proto
@redoc-cli bundle api-image.json
.PHONY: build
build:
go build -o image *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t image:latest