Is build caching available for devcontainer features? #45941
-
Select Topic AreaProduct Feedback BodyI would like to rely on devcontainer "features" as a low-code, portable, and easily maintainable way to bring common capabilities to a variety of repos. However, it appears in my experience that the features' installation process is not cached, meaning rebuilding the container takes a lot longer versus if I hard-code all of the installations into my Dockerfile using legacy/traditional installation methods. This code is much less portable, more prone to bugs, and harder to maintain vs the feature-driven equivalent. Is it expected that I would not see caching in this layer when using features? Is there some hybrid alternative, such as 'installing' those features via Dockerfile CLI commands, but still using the code from the feature? Related: should I expect that Prebuilds feature would include features' installations if enabled? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi 👋 We are expecting that the Features are cached, however, there is a regression. There's a PR to fix this in review --> devcontainers/cli#382 This should get fixed soon! 😄
Are you referring to Codespaces prebuilt? If so, then yes. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I don't have detailed knowledge on how billing works for Codespaces in a such a depth to answer your questions. Would you mind asking them in https://github.com/orgs/community/discussions/categories/codespaces ? Thanks! |
Beta Was this translation helpful? Give feedback.
-
@samruddhikhandale i dont' think is relevant to codespaces - same problem appears also when using features in a local environment on PC. While Dockerfile is cached. Features are always reinstalled.. |
Beta Was this translation helpful? Give feedback.
-
I've only added a
|
Beta Was this translation helpful? Give feedback.
Hi 👋
We are expecting that the Features are cached, however, there is a regression. There's a PR to fix this in review --> devcontainers/cli#382
This should get fixed soon! 😄
Are you referring to Codespaces prebuilt? If so, then yes.