Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.57 KB

File metadata and controls

43 lines (29 loc) · 1.57 KB

ITplusX Dev Container Features

Custom Dev Container Features maintained by ITplusX.

Features

Feature Description
mount-pnpm-store Sets the pnpm store to ~/.pnpm-store and mounts it to a shared volume. Patched copy of joshuanianji/devcontainer-features that works with pnpm >= 9 in non-interactive lifecycle shells.

Usage

"features": {
    "ghcr.io/itplusx/devcontainer-features/mount-pnpm-store:1": {}
}

Repo structure

Based on the official devcontainers/feature-starter template:

  • src/<feature-id>/ — one directory per feature (devcontainer-feature.json + install scripts)
  • test/<feature-id>/ — tests, run with devcontainer features test -f <feature-id> .
  • .github/workflows/release.yaml — publishes all features to ghcr.io/itplusx/devcontainer-features/<feature-id> (manual workflow_dispatch)

Publishing

  1. Bump version in the feature's devcontainer-feature.json
  2. Merge to main
  3. Run the Release dev container features workflow (Actions tab)
  4. First publish only: set the GHCR package visibility to public

Testing locally

npm install -g @devcontainers/cli
devcontainer features test -f mount-pnpm-store --skip-autogenerated .

License

MIT — see LICENSE. The mount-pnpm-store feature contains code Copyright (c) 2023 Joshua Ji (MIT).