Skip to content

Dockerfile compatibility without buildkit #10416

@shykes

Description

@shykes

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:

  1. Implement a native Dockerfile-to-dagger adapter. This could be by porting buildkit's dockerfile frontend, or implementing something from scratch.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions