Skip to content

FetchContainer: Inject Docker image metadata into LLB - #141

Merged
aluzzardi merged 1 commit into
mainfrom
fetchcontainer-image-metadata
Feb 25, 2021
Merged

aluzzardi merged 1 commit into
mainfrom
fetchcontainer-image-metadata

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor

Fixes #130

Signed-off-by: Andrea Luzzardi [email protected]

@aluzzardi
aluzzardi requested a review from shykes February 25, 2021 22:17
@aluzzardi
aluzzardi force-pushed the fetchcontainer-image-metadata branch from 8b635ea to 72ecc95 Compare February 25, 2021 22:20

@shykes shykes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I’m surprised that such a common use case requires so much extra code on top of the buildkit API! Thanks for implementing it, now I can remove lots of redundant lines from my test configurations :)

@aluzzardi

aluzzardi commented Feb 25, 2021 •

Copy link
Copy Markdown
Contributor Author

This is only half the battle.

If you were to do a FetchContainer followed by a PushContainer (?), all the metadata would be lost.

Regardless of using FetchContainer or not -- if we don't keep track of image metadata during pipeline execution, our resulting images cannot contain things such as "sticky" ENV (e.g. a docker run of an image produced by dagger will lack PATH altogether).

I'll open an issue to track this.

@aluzzardi aluzzardi mentioned this pull request Feb 25, 2021
@aluzzardi
aluzzardi force-pushed the fetchcontainer-image-metadata branch from 72ecc95 to 4bd0ffd Compare February 25, 2021 22:47
@aluzzardi
aluzzardi merged commit 6eb3d5a into main Feb 25, 2021
@aluzzardi
aluzzardi deleted the fetchcontainer-image-metadata branch February 25, 2021 22:54
aluzzardi pushed a commit that referenced this pull request Sep 16, 2022
chore: add markdownlint linter to docs + fix current one
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.

ENV from fetched container is lost

2 participants