Skip to content

Fix: propagate --cache-from to buildx build - #638

Merged
Samruddhi Khandale (samruddhikhandale) merged 2 commits into
devcontainers:mainfrom
dhhyi:fix/propagate-cache-from
Apr 12, 2024
Merged

Samruddhi Khandale (samruddhikhandale) merged 2 commits into
devcontainers:mainfrom
dhhyi:fix/propagate-cache-from

Conversation

@dhhyi

Copy link
Copy Markdown
Contributor

I am trying to use the new --cache-to feature from #570 with a registry cache.

If I understand it correctly this only works when using both --cache-to and --cache-from, but the devcontainers-cli does not send --cache-from to docker buildx build.

@cjam

Copy link
Copy Markdown

Does this resolve the issue of devcontainer features being rebuilt everytime the devcontainer is used irrespective of prebuilt container?

@chrmarti Christof Marti (chrmarti) 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.

Thanks for the PR! Left a few comments.

Comment thread src/spec-node/singleContainer.ts Resolved
Comment thread src/spec-node/containerFeatures.ts Resolved

@chrmarti Christof Marti (chrmarti) 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.

Thanks!

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.

Looks good, thanks!

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) merged commit 9d98f30 into devcontainers:main Apr 12, 2024
Danilo Hoffmann (dhhyi) added a commit to dhhyi/devcontainer-creator that referenced this pull request Oct 30, 2024
@dhhyi
Danilo Hoffmann (dhhyi) deleted the fix/propagate-cache-from branch October 30, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants