🐳 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.jsonandinstall.shscripts - Add the corresponsing test.sh to the test folder
Get the devcontainer-contrib cli
pip install devcontainer-contribAdd 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_dirAdditional 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": {}
}
}