spec icon indicating copy to clipboard operation
spec copied to clipboard

Allow `devcontainer.override.json` (Git ignored) to override `devcontainer.json`

Open eitsupi opened this issue 3 years ago • 3 comments

Previous discussion: microsoft/vscode-remote-release#3279 Related to #22

Often we want to install Dev Container Features in containers that are not required for development but that we personally use. For example, in my case it is the fish shell and shell-history.

VS Code Dev Containers supports similar functionality in its own configuration (dev.containers.defaultFeatures), but it would be great if the spec could support this like compose.override.yml of docker compose.

eitsupi avatar Sep 10 '23 07:09 eitsupi

Bumping this as I'd like to see this idea implemented. ❤️ My usage would be to combine this for per-project overrides with user settings for global overrides (like dev.containers.defaultExtensions, dev.containers.defaultFeatures).

This would allow per-project overrides of environment variables and mount volumes as well as extensions and features.

Unlike dev.containers.repositoryConfigurationPaths, an override file would live in the project's directory and merge with the committed devcontainer config instead of replacing it, making it easier to manage and would inherit from project's updates.

matiboux avatar Aug 08 '26 15:08 matiboux

Change file diff

Fleinsopp avatar Aug 10 '26 07:08 Fleinsopp

Change file

Fleinsopp avatar Aug 10 '26 07:08 Fleinsopp