Skip to content

devsu/docker-grpc-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dockerized and ready to use grpc-gateway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages