Skip to content

Use image.config in docker.#Run - #1517

Merged
jlongtine merged 5 commits into
dagger:mainfrom
jlongtine:docker-run-image-config
Jan 28, 2022
Merged

jlongtine merged 5 commits into
dagger:mainfrom
jlongtine:docker-run-image-config

Conversation

@jlongtine

@jlongtine jlongtine commented Jan 27, 2022 •

Copy link
Copy Markdown
Contributor

WHY: engine.#Exec is intentionally stateless. It doesn't use any environment, user, etc. information from pulled images to define the environment that it will be running in. This is a different experience than most people are used to running tasks in.
HOW: docker.#Run now utilizes image config from a pulled image to set up the environment. It also allows one-off overrides and additions to various aspects of the environment.

Fixes #1247

Signed-off-by: Joel Longtine [email protected]

@jlongtine

Copy link
Copy Markdown
Contributor Author

@TomChv Ping!

@jlongtine

Copy link
Copy Markdown
Contributor Author

I got distracted with some changelog.com config stuff, adding my tests soon.

@netlify

netlify Bot commented Jan 27, 2022 •

Copy link
Copy Markdown

@TomChv TomChv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, awesome tests!

Comment thread pkg/universe.dagger.io/docker/run.cue Resolved
@aluzzardi

Copy link
Copy Markdown
Contributor

LGTM!

@helderco what do you think?

@jlongtine How do you feel about merging #1517 to simplify this PR?

/cc @shykes

@jlongtine

Copy link
Copy Markdown
Contributor Author

@jlongtine How do you feel about merging #1517 to simplify this PR?

Did you mean #1505? I'll do another review of that, but I'm generally a yes! It would make this simpler and nicer.

@aluzzardi

Copy link
Copy Markdown
Contributor

Did you mean #1505? I'll do another review of that, but I'm generally a yes! It would make this simpler and nicer.

Yes, sorry, too many tabs open :)

@jlongtine
jlongtine force-pushed the docker-run-image-config branch 2 times, most recently from 659b263 to ec6941e Compare January 28, 2022 17:56
Joel Longtine added 3 commits January 28, 2022 10:57
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
@jlongtine
jlongtine force-pushed the docker-run-image-config branch from ec6941e to 0de625e Compare January 28, 2022 17:58
Joel Longtine added 2 commits January 28, 2022 10:59
Signed-off-by: Joel Longtine <[email protected]>
Signed-off-by: Joel Longtine <[email protected]>
@jlongtine
jlongtine merged commit afb64e9 into dagger:main Jan 28, 2022
@jlongtine
jlongtine deleted the docker-run-image-config branch January 28, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants