This image bundles the standard grpc_cli from https://github.com/grpc/grpc/blob/master/doc/command_line_tool.md
Mount pwd to /defs to allow it to read your protos, for example
docker run -v `pwd`:/defs --rm -it namely/grpc-cli call docker.for.mac.localhost:50051 \\
LinkShortener.ResolveShortLink "short_link:'asdf'" --protofiles=link_shortener.proto
Use docker.for.mac.localhost or docker.for.win.localhost to access localhost, as the command is run on the container itself.
You may find it useful to define an alias for this command:
alias grpc_cli='docker run -v `pwd`:/defs --rm -it namely/grpc-cli'
(note use of single quotes to avoid expanding the pwd parameter)
and then call it with
grpc_cli call docker.for.mac.localhost:50051 LinkShortener.ResolveShortLink "short_link:'asdf'" --protofiles=link_shortener.proto
Content type
Image
Digest
sha256:ca0480b20…
Size
381.6 MB
Last updated
about 3 years ago
docker pull namely/grpc-cli