Centralized Dev Container features shared across NerdIT-Tech repositories.
Each feature lives in src/<feature>/ and can be referenced from any
devcontainer.json by its OCI reference under ghcr.io/nerdit-tech.
| Feature | Description |
|---|---|
claude-cache |
Persist Claude Code's ~/.claude data/config |
go-cache |
Persist Go build & module caches |
opencode |
Install the OpenCode CLI |
opencode-data |
Persist OpenCode data/config via named volumes |
podman-remote |
Install the Podman remote client pointed at the host socket (bind the host socket yourself via mounts) |
xdg-utils |
Install xdg-utils with a host-browser-pipe xdg-open wrapper (bind the host pipe yourself via mounts) |
Reference a feature from a devcontainer.json by its published OCI name:
Features are published to the GitHub Container Registry (ghcr.io/nerdit-tech)
by the release.yml workflow (devcontainers/action), which also generates
each feature's README.md. For validation:
test.ymlvalidates every feature's manifest against the containers.dev schema (devcontainers/action validate-only) and checks that its install scripts are syntactically valid.test-features.ymlactually builds each feature in a container and runs itstest.shvia the@devcontainers/cli(plus scenario tests undertest/for features that need volume mounts / lifecycle hooks).
To add a new feature:
- Create
src/<feature>/with adevcontainer-feature.jsonandinstall.sh. - Add a
test.shfor the feature (runs inside the container duringdevcontainerfeature testing). - Open a PR; on merge to
main, run theRelease dev container featuresworkflow (workflow_dispatch) to publish it.
{ "features": { "ghcr.io/nerdit-tech/devcontainer-features/opencode:0": {}, "ghcr.io/nerdit-tech/devcontainer-features/opencode-data:0": {} } }