From 62b7b2227ec89839ae4016eed669ffc0f0c0fd65 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Fri, 19 May 2017 09:56:47 +0200 Subject: [PATCH] Add Docker usage (fix #8) --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1ff8bfa..895a551 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,17 @@ See the project helpers for the complete list. * Install **protobuf**: `go get -u github.com/golang/protobuf/{proto,protoc-gen-go}` * Install **protoc-gen-gotemplate**: `go get -u github.com/moul/protoc-gen-gotemplate` +## Docker + +* automated docker hub build: [https://hub.docker.com/r/moul/protoc-gen-gotemplate/](https://hub.docker.com/r/moul/protoc-gen-gotemplate/) +* Based on [http://github.com/znly/protoc](http://github.com/znly/protoc) + +Usage: + +```console +$> docker run --rm -v "$(pwd):$(pwd)" -w "$(pwd)" moul/protoc-gen-gotemplate -I. --gotemplate_out=./output/ ./*.proto +``` + ## Projects using `protoc-gen-gotemplate` * [kafka-gateway](https://github.com/moul/kafka-gateway/): Kafka gateway/proxy (gRPC + http) using Go-Kit