Repository navigation
Add --cache-to option to devcontainer build command - #570
Samruddhi Khandale (samruddhikhandale) merged 5 commits into
Conversation
|
@microsoft-github-policy-service agree |
joshspicer
left a comment
There was a problem hiding this comment.
I've run CI on your changes and looks like there's a couple minor tweaks needed. Linter issues can be detected locally with yarn lint. There's also a test issue but that probably just needs some minor reworking
|
Sorry! I fixed lint issue. Waiting for checks. |
|
joshspicer |
joshspicer
left a comment
There was a problem hiding this comment.
Thanks! I'll ask Christof Marti (@chrmarti) to take a quick peek to
|
Christof Marti (@chrmarti) |
Christof Marti (chrmarti)
left a comment
There was a problem hiding this comment.
Thanks for the PR! Left a comment. Additionally:
-
Please add a check and error at
since it is not supported.cli/src/spec-node/devContainersSpecCLI.ts
Line 620 in eafbf64
-
Should the flag also be added at
? (This runs when the user has an image without a Dockerfile, but we still want to add features to the image.)cli/src/spec-node/containerFeatures.ts
Line 90 in eafbf64
|
Thanks for your review. I pushed two commits!
|
Christof Marti (chrmarti)
left a comment
There was a problem hiding this comment.
Approving PR, thanks!
joshspicer / Samruddhi Khandale (@samruddhikhandale) Could you take another look? Thanks.
|
Samruddhi Khandale (@samruddhikhandale) |
|
This seems to be missing from |
Close #563
I added
--cache-tooption todevcontainer buildcommand.If buildx is used for building image, we can pass
--cache-tooption in order to export and reuse buildx cache.Checks
docker buildx create --driver=docker-container --use--cache-tooptionnode devcontainer.js build --workspace-folder . --cache-to=type=local,dest=/tmp/build-cachels /tmp/build-cache