R
Railwayβ€’2y ago
bitlikethis

Tonic gRPC Server Configuration

I am trying to deploy a basic Tonic gRPC server. I have gotten it to run locally with
nixpacks build .
docker run -it -p 50051:50051 IMAGE
nixpacks build .
docker run -it -p 50051:50051 IMAGE
and then using grpcurl to call the SayHello route
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '0.0.0.0:50051' helloworld.Greeter/SayHello
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '0.0.0.0:50051' helloworld.Greeter/SayHello
but I have not figured out how to specify the docker run command to specify port forwarding. I do not have much docker/nixpacks experience, so any assistance would be appreciated πŸ™ Project ID: c40cec25-018c-448d-b71c-8eaa73a09d4d
5 Replies
Percy
Percyβ€’2y ago
Project ID: c40cec25-018c-448d-b71c-8eaa73a09d4d
Brody
Brodyβ€’2y ago
there's no support for gRPC yet, only http/ws
bitlikethis
bitlikethisOPβ€’2y ago
ahh bummer. I appreciate the quick feedback!
Brody
Brodyβ€’2y ago
no problem
Want results from more Discord servers?
Add your server