Repository navigation
automatically start/upgrade buildkitd - #149
Conversation
6104865 to
c271cc8
Compare
- Automatically start a buildkit daemon if no BUILDKIT_HOST is provided (and if not already started) - Customization of BUILDKIT_HOST is still possible, just like before - Automatically upgrade the managed daemon to the version used by dagger if necessary - Add CI test to make sure the managed buildkit and the vendored buildkit versions match Signed-off-by: Andrea Luzzardi <[email protected]>
c271cc8 to
14ff14e
Compare
Signed-off-by: Andrea Luzzardi <[email protected]>
Signed-off-by: Andrea Luzzardi <[email protected]>
Signed-off-by: Andrea Luzzardi <[email protected]>
cadc9b5 to
408053f
Compare
|
hmm, not sure how I feel about automagically starting a privileged container. Feels like it violates some SecOps ideas or best practices |
|
Indeed, that's not great. The upside though is by automating the creation of buildkit, we can now implement more advanced setups. For instance, it wouldn't be too hard to do a follow up that drops --privileged by running a rootless buildkit daemon: |
By that, do you mean something like?
|
|
No I don't think we should mess with that. I'm just saying we can do something better than |
|
Opened an issue to track the I'll move this forward in the meantime as it's not worse than the instructions in the README, it just automates them. |
v1.3.0 is the first release carrying #120, which has the bindings generators style identifiers through the engine's `Naming.formatIdentifiers` rather than guessing from schema names. v1.1.0's codegen guessed, and guessed wrong for API newer than its own pairing: `ArtifactUriOpts` and `ImageMediaTypes.Oci` where this engine says `ArtifactURIOpts` and `OCI`. It also carries the codegen module (#149), so the renderer arrives as a dependency instead of a `go build` recipe kept here — the thing the two sides agreeing was never checked against. Signed-off-by: Tom Chauveau <[email protected]>
Removed one setup step by automatically taking care of starting buildkitd (e.g. only docker is now required to getting started)
provided (and if not already started)
BUILDKIT_HOST) is still possible, just like before (the code kicks in only if noBUILDKIT_HOSTis provided).if necessary: we've had panics in the past when using a new buildkit client against an old daemon
buildkit versions match
Note: this is using the docker CLI rather than the client library, on purpose, because of permissions (e.g. we might not be able to read/write on the docker unix socket, whereas the CLI can)