Replies: 2 comments 2 replies
-
|
Thanks for sharing this! It sounds similar to a timeline view for dev container builds. cc @chrmarti for any thoughts or if you think it makes sense to track this in https://github.com/microsoft/vscode-remote-release/issues. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your answer! Yes, a timeline view might also work. Of course containers are more expensive to keep around that commits, so I would be totally fine with saving only the latest working container - just to ensure that we always have a working environment instead of being randomly deprived of it if some dependencies are broken. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using the devcontainers in VSCode. I am using the
Dev Containersextension and running theDev Containers: Rebuild Containercommand.The problem is what happens when the build fails. Then you really don't have a dev environment anymore - you have to fix this problem, now, to be able to do your normal job - you can't decide to fix it later on in the day, everything is blocked until the issue is fixed. And if the fix is something outside of your control (e.g. a devcontainer feature fails to install, e.g. here), then you're in trouble - suddenly you have no dev environment anymore and you cannot write any code.
This is not a great position to be in. This issue can be partly addressed with devcontainers prebuilds (e.g. here), but only partly - there is still some code which runs on your machine which might cause the build to fail. Prebuilds are meant to speed up creation of devcontainers, but they're not there to ensure availability.
All this to say: I would like to be able to fallback to the latest container I was using if the latest rebuild fails. So that I can still do everything I need, I can still program and make progress, and at my leisure I can go and fix the devcontainer image.
Right now rebuilding the devcontainer is a leap of faith - if it does not work, you're stuck with no alternative. Would be nice if we could fallback to the latest image if the building fails (something like
Dev Containers: Reuse latest available imageor something like that).Let me know what you think!
Beta Was this translation helpful? Give feedback.
All reactions