This repo hosts reusable devcontainer templates for projects and teams.
Use a template by referencing its image in devcontainer.json:
Template IDs map to src/ folder names and GHCR image names.
| Template ID | Image (latest) |
|---|---|
mobile-app |
ghcr.io/lloydrichards/devcontainer-templates/mobile-app:latest |
web-app |
ghcr.io/lloydrichards/devcontainer-templates/web-app:latest |
web-app-fullstack |
ghcr.io/lloydrichards/devcontainer-templates/web-app-fullstack:latest |
Pin a version by replacing latest with a published tag (for example :v0.3.1).
src/<template-id>: Template definitions.test/<template-id>: Template tests.
- Copy an existing template folder in
src/. - Update
devcontainer-template.jsonand.devcontainer/devcontainer.json. - Add a test in
test/<template-id>/test.sh. - Add docs in
docs/templates/<template-id>.mdand update the catalog.
Publishing will use devcontainer templates publish to GHCR. The workflow
will be added once the initial set of templates is stable.
{ "name": "My Project", "image": "ghcr.io/lloydrichards/devcontainer-templates/web-app:latest" // "features": { ... }, // "customizations": { ... } }