Skip to content

Europa: docker.#Run: apply image config as defaults #1247

Closed

Description

@shykes

Prior to Europa, Dagger relies on Buildkit to manage exec defaults. For example op.#Workdir would translate to llb.Workdir in Buildkit, and all future calls to Exec would automatically use that default value for workdir.

In Europa, Dagger must not use this feature of buildkit, and it must not implement this feature in its own implementation either. Rather, it is the CUE caller’s responsibility to manage defaults if they so choose. In other words, engine.#Exec is stateless.

In the Dagger Universe, the responsibility of managing these defaults falls primarily on the universe.dagger.io/docker package, specifically docker.#Run. When a relevant field is not set (for example workdir or user, it is the responsibility of docker.#Run to use the corresponding value from image instead.

This feature is not yet implemented. This issue tracks its implementation.

Activity

  1. added this to the milestone on Dec 17, 2021
  2. modified the milestones: , next on Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions