devcontainers / devcontainers/spec

Providing a set of values to a single feature `option`

Open
#57 7 comments 7 reactions 0 assignees View on GitHub
proposal
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.