-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Invoking a frontend using the gRPC API #5898
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
Comments
Hi. If I'm understanding correctly, you're attempting to invoke the gRPC API for Buildkit as a client. There are two APIs that use gRPC and I suspect you might be looking at the wrong one. There's the frontend API which is very heavily based on the current Go implementation. It's possible to use that API from outside of Go, but it's primarily meant as a way to create custom frontends. A custom frontend is invoked by buildkit and buildkit acts as the client to your frontend which is the server. The most typical usage of this is with the I suspect you may be looking for the control API which is the outwards facing API. That's the gRPC API where buildkit is the server and your client is making an outside request for a build. This API is located in Rather than looking at anything in the I hope that helps. If I've misunderstood your intention, please correct me. Thanks. |
Hi @jsternberg Thank you for the detailed response. I am actually already using I still have some open questions about the BuildKit gRPC API. If you take a look at https://github.com/cowwoc/docker/blob/3c7aa4849e63d188c45c5e94d9819cf0238ba56a/pom.xml#L403 I am totally guessing at what Where can I find a list of all the proto files used to build BuildKit (and any dependent proto files) to make sure that I'm using the same versions as you guys? For example, I'm not sure if this is the right version of ext.proto: https://github.com/cowwoc/docker/blob/3c7aa4849e63d188c45c5e94d9819cf0238ba56a/pom.xml#L692 And as you can see at https://github.com/cowwoc/docker/blob/3c7aa4849e63d188c45c5e94d9819cf0238ba56a/pom.xml#L723 I am having to modify the downloaded proto file to avoid a compile-time error... so something doesn't smell right. |
I think the easiest way to get the correct protobuf files may be to use our builder at I modified the file a little bit to hopefully make things easier for you. The file previously copied the protobuf files for generation into a
This will also include the |
Description
I am trying to build a Java client for BuildKit using the gRPC API.
The "dockerfile.v0" frontend seems to expect us to pass inputs in LLB format, but (as far as I can tell) there is no way to generate LLB outside of the Go code.
Is this functionality that needs to be added or am I missing something?
To be clear, I am looking for an API to invoke as opposed to running
buildkitd
over command-line. Thank you.The text was updated successfully, but these errors were encountered: