devcontainers / devcontainers/spec
Providing a set of values to a single feature `option`
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
This proposal is an enhancement idea to the current [dev container features proposal](https://github.com/devcontainers/spec/blob/main/proposals/devcontainer-features.md).
---
Breaking off from https://github.com/devcontainers/spec/issues/44#issuecomment-1167687113 to address @Chuxel 's option (1).
There are several ways we could pass an array _of options_ to an individual features.
```jsonc
features: {
apt: {
"packages": ["vim", "jq", "curl"] // option A
"packages": "vim jq curl" // option B
}
}
```
Under the hook, this would be converted to an environment variable for the underlying shell script to handle.
`_BUILD_ARG_APT_GET_PACKAGES="vim jq curl"`
Contributor guide
Assessment
This issue has not been assessed yet.