Init the proto library
This commit is contained in:
15
Makefile
Normal file
15
Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# ---------------------------------------------------------------------
|
||||
# -- Which container tool to use
|
||||
# ---------------------------------------------------------------------
|
||||
CONTAINER_TOOL ?= docker
|
||||
|
||||
container-go-protobuf:
|
||||
$(CONTAINER_TOOL) build -t gogen . && \
|
||||
$(CONTAINER_TOOL) run --rm \
|
||||
-v $$(pwd)/proto:/proto \
|
||||
-v $$(pwd)/pkg:/pkg \
|
||||
gogen \
|
||||
protoc --go_out=/pkg/ --go_opt=paths=source_relative \
|
||||
--go-grpc_out=/pkg/ --go-grpc_opt=paths=source_relative \
|
||||
--proto_path=proto/proto \
|
||||
$$(find proto -type f -iname "*.proto")
|
Reference in New Issue
Block a user