Sign inSign up

devsu/grpc-gateway

By devsu

•Updated over 9 years ago

Dockerized and ready to use grpc-gateway generated using GRPC Gateway Generator.

Image
0

5.9K

devsu/grpc-gateway repository overview

⁠docker-grpc-gateway

Dockerized and ready to use grpc-gateway. A GRPC gateway is generated using GRPC Gateway Generator⁠ and then run.

⁠Usage

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.

⁠Configuration File

See documentation at grpc-gateway-generator⁠. Make sure the port defined in the configuration matches the port exported when running the container.

⁠Status

Alpha: It works for development purposes, but not for production yet. (grpc-gateway-generator doesn't work with TLS yet).

⁠TODO

  • 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)

⁠License and Credits

MIT License. Copyright 2017

Built by the Docker experts⁠ at Devsu.

Tag summary

Content type

Image

Digest

Size

179.9 MB

Last updated

over 9 years ago

docker pull devsu/grpc-gateway