๐ณ Extra add-in features for devcontainers and GitHub Codespaces
๐ป Works with
devcontainers
โ๏ธ Works with GitHub Codespaces \
๐ข We are actively seeking contributions!
- Add a feature-id named directory to the src folder containing your
devcontainer-feature.json
andinstall.sh
scripts - Add the corresponsing test.sh to the test folder
Get the devcontainer-contrib cli
pip install devcontainer-contrib
Add a new devcontainer-definition.json
file to the feature_definition dir
While under the root folder of this repo, generate it using the command:
devcontainer-contrib features generate "./feature_definition/your-feature-id/feature-definition.json" "." --output-type=feature_dir
Additional information and docs about the CLI and devcontainer-definition.json file
๐ View the full list of features
Just add a .devcontainer/devcontainer.json
file with a features
key. It's
very similar to NPM's package.json
and dependencies
object, just with the
addition of an options
object.
๐ Make sure to inspect each feature for feature-specific options
{
"image": "mcr.microsoft.com/devcontainers/universal:linux",
"features": {
"ghcr.io/devcontainers-contrib/features/deno:latest": {},
"ghcr.io/devcontainers-contrib/features/mkdocs:latest": {},
"ghcr.io/devcontainers-contrib/features/bikeshed:latest": {}
}
}