Replies: 4 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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@jsternberg Thanks for this update. Can you please add
Converting the line ending to LF manually fixed the problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.Beta Was this translation helpful? Give feedback.
All reactions