Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildkitd: add grpc reflection #3790

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Conversation

nicks
Copy link
Contributor

@nicks nicks commented Apr 11, 2023

This lets you run:

docker run -d --rm --privileged -p 1234:1234 moby/buildkit:local --addr tcp://0.0.0.0:1234
grpcurl -plaintext localhost:1234 list

to determine what APIs a grpc server supports.

https://github.com/grpc/grpc-go/blob/5a50b970ccaddcd811b4a0da8e56fe1a2492f7da/Documentation/server-reflection-tutorial.md

I find this makes it slightly easier to check if grpc servers are starting up and responding ok. But if you think it's not worth the additional code, it's not a big deal either way.

This lets you run:

```
docker run -d --rm --privileged -p 1234:1234 moby/buildkit:local --addr tcp://0.0.0.0:1234
grpcurl -plaintext localhost:1234 list
```

to determine what APIs a grpc server supports.

Signed-off-by: Nick Santos <nick.santos@docker.com>
@tonistiigi
Copy link
Member

@AkihiroSuda @sipsma Any opinions about this one?

@tonistiigi tonistiigi merged commit f1f2753 into moby:master Apr 14, 2023
@nicks nicks deleted the nicks/reflection branch April 14, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants