Repository navigation
Conversation
|
🎉 🎉 🎉 wow, this is incredibly amazing. I thought we were months away from having this. I only skimmed through the code, need to spend more time on this, but ... so many questions :)
Yep, good point. I'm wondering what the binary size would be. @sipsma this might re-open up the topic of how we distribute the binaries long term?
|
A lot of it is yoinked from Buildkit and stripped for parts. The hard part was figuring out how exactly to glue it together. 😅 Lots of confusion around whether something is client-side or server-side, and lots of things that looked promising but were dead ends. Some key parts:
Need to preserve proper attribution for all this. |
|
So, we're not totally out of the woods yet. This lets us get files in to Dagger but it doesn't help us get them out. As @sipsma pointed out in #3421 (comment), exporting currently requires establishing a new gateway session. There's an upstream issue to add exporting to the gateway interface: moby/buildkit#1914. Unless I'm missing something, this seems like a decent chunk of work to implement. Currently exporting works by registering a single The sad thing is even with that implemented we wouldn't really get remote exporting "for free" because we currently have to deal both OCI and Local export types in engine, and I don't think we'd want to bubble that complexity up to each SDK. I think we might just want to come up with our own gRPC service interface for exporting to paths. The engine can then internally do whichever export type is appropriate and then translate it to a direct gRPC client call using the session's underlying The silver lining is that we could do this without actually being blocked on upstream changes by re-using the underlying |
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
not REALLY decoupled yet but cuts out some unnecessary plumbing Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
the SDK client now implements a service for receiving and optionally unpacking tar streams to arbitrary locations. the engine now exports using this service. Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
* per-session host fixes SDK workdir example * update SDK workdir example to be self-contained * removes Workdir/ConfigPath from engine config, no longer needed * removes more dead code * fixes receiver naming lints * silences http.ClientConn lint Signed-off-by: Alex Suraci <[email protected]>
and remove bkClient/solveOpts/solveCh from base schema now that nothing uses it Signed-off-by: Alex Suraci <[email protected]>
|
Updates:
|
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
replaced by http Signed-off-by: Alex Suraci <[email protected]>
+ update mage setup Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
no longer needed Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
otherwise Dockerfile was hitting skipped errors Signed-off-by: Alex Suraci <[email protected]>
* track bootstrap SDK version in separate Go module * move mage code under magefiles/ so it can be optionally run with its own go.mod/go.sum without clashing with the root go.mod * run mage boot:run TARGET to run a target using bootstrap SDK version * run mage boot:dev engine:test to run engine:test target against dev engine built using bootstrap SDK version Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
|
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
Closing now that we know that we can, but have decided that we shouldn't (for now). Most of the time was spent figuring out how to do this; now that we know how it'll be easier to just redo it on |
This is nowhere near ready but I wanted to put a PR up early.
dagger.Connectnow initializes a session and keeps it open for the duration of the client./query?session=<id>.session.Attachablethat proxies back to the client's session.The end result is that it's possible to run the Engine in a Docker container and sync files from the client's host. No API changes necessary. 🎉
To try it out:
docker buildx build . -t cloak docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 cloak dev go run ./cmd/remotesyncTODO:
github.com/moby/buildkitdependencygithub.com/moby/session/*implementations, which we've already almost done forfilesynccmd/remotesync(it's just a testing crutch)--disable-host-rwis still respected