News for hackers. Stuff that matters.
Re:BuildKit in depth: Docker's build engine explained by notso411 on Tuesday February 06, 2024 @04:07PM (#39280609)
Really? Just busy work? Senior engineers incapable of thinking of good onboarding tasks?
Re:BuildKit in depth: Docker's build engine explained by adamgordonbell on Tuesday February 06, 2024 @04:14PM (#39280704)
Nope, i mean i can see how youd think that, but familarity with BuildKit is just part of the job.

We are building on top of it, and sometimes adding to it.

Re:BuildKit in depth: Docker's build engine explained by codethief on Tuesday February 06, 2024 @09:37PM (#39283806)
Hi Adam! If I may ask, why did you go with BuildKit (instead of, say, just calling runc on your own) and what has your experience been like?
Re:BuildKit in depth: Docker's build engine explained by adamgordonbell on Wednesday February 07, 2024 @10:43AM (#39289894)
We use a lot of what buildkit does.

For instance, building up the DAG of all the build steps and then scheduling things so that various parts can be built in parallel. Buildkit does a lot that we use beyond just being a way do build things inside a runc container.

That said, we have a fork of buildkit for the various things we add that don't fit well in the upstream.

Already our auto-skip feature and our branching are implemented on top of Buildkit rather than using it. Probably as we grow and add more build centric features we will continue to diverge.

I'm just a DevRel person though, so that's just my 2 cents. The core team may disagree with me.

Re:BuildKit in depth: Docker's build engine explained by pdimitar on Friday February 09, 2024 @08:35AM (#39314695)
> building up the DAG of all the build steps and then scheduling things so that various parts can be built in parallel

This is one of my hobbies as a programmer and I'm extremely interested in this area. Can you share more or is it a trade secret?

Furthermore, do you have links to tools or papers that deal with this?

Re:BuildKit in depth: Docker's build engine explained by adamgordonbell on Thursday February 15, 2024 @12:48PM (#39385808)
Just saw this now.

I don't have any great references to be honest. It's not that its a trade-secret, its just that its an area I don't work on.

The AWK book describes how to build you own Make using AWK. You might like that. And an explanation of it and python implementation is found here:

https://benhoyt.com/writings/awk-make/

Hopefully that helps.

Re:BuildKit in depth: Docker's build engine explained by pdimitar on Thursday February 15, 2024 @12:53PM (#39385875)
Should be great, thank you.

I am considering writing a small library / framework to optimize scheduled tasks by making a DAG and inferring which ones are safe to be parallel and which aren't. So this can be useful.

Re:BuildKit in depth: Docker's build engine explained by code_biologist on Tuesday February 06, 2024 @07:07PM (#39282762)
It seems sane. He works at Earthly, a containerized build platform: https://earthly.dev/