Dockerized and ready to use grpc-gateway. A GRPC gateway is generated using GRPC Gateway Generator and then run.
docker run -d \
--name my-grpc-gateway \
-v /path/to/config.json:/opt/generator/config/config.json \
-v /path/to/protos:/opt/generator/protos \
-p 8080:8080 \
devsu/grpc-gateway
To re-create the gateway, you just have to restart the docker container. The proto files must have ".proto" extension to be processed.
See documentation at grpc-gateway-generator. Make sure the port defined in the configuration matches the port exported when running the container.
Alpha: It works for development purposes, but not for production yet. (grpc-gateway-generator doesn't work with TLS yet).
- Try to decrease the image size by deleting folders in
/go/src
(except{GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
which is needed during proxy generation) - Try to find other ways to decrease the image size? (not sure if possible)
MIT License. Copyright 2017
Built by the Docker experts at Devsu.