mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
password generator (#395)
This commit is contained in:
27
password/Makefile
Normal file
27
password/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
GOPATH:=$(shell go env GOPATH)
|
||||
.PHONY: init
|
||||
init:
|
||||
go install github.com/golang/protobuf/protoc-gen-go@latest
|
||||
go install github.com/micro/micro/v3/cmd/protoc-gen-micro@latest
|
||||
go install github.com/micro/micro/v3/cmd/protoc-gen-openapi@latest
|
||||
|
||||
.PHONY: api
|
||||
api:
|
||||
protoc --openapi_out=. --proto_path=. proto/password.proto
|
||||
|
||||
.PHONY: proto
|
||||
proto:
|
||||
protoc --proto_path=. --micro_out=. --go_out=:. proto/password.proto
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o password *.go
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v ./... -cover
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
docker build . -t password:latest
|
||||
Reference in New Issue
Block a user