Problem
As part of "project theseus" we're removing our dependency on buildkit. As a result our current implementation of Dockerfile compat (Directory.dockerBuild) will no longer work, because it relies heavily on buildkit and its dockerfile frontend.
This Dockerfile compat is a very useful feature and we don't want to lose it. So we need to find a solution
Solution
There are 2 possible designs:
- Implement a native Dockerfile-to-dagger adapter. This could be by porting buildkit's dockerfile frontend, or implementing something from scratch.
- Run buildkit as a Dagger service, instrument it to do the build, get the result back. Similar design to the several Docker compat modules in Daggervere
After quick discussion with @sipsma , the preferred path is option 2 - wrapping buildkit.
All other details TBD.
Problem
As part of "project theseus" we're removing our dependency on buildkit. As a result our current implementation of Dockerfile compat (
Directory.dockerBuild) will no longer work, because it relies heavily on buildkit and its dockerfile frontend.This Dockerfile compat is a very useful feature and we don't want to lose it. So we need to find a solution
Solution
There are 2 possible designs:
After quick discussion with @sipsma , the preferred path is option 2 - wrapping buildkit.
All other details TBD.