Installs the Aspire CLI.
"features": {
"ghcr.io/sliekens/devcontainer-features/aspire-cli:1": {
"quality": "release"
}
}| Option | Type | Default | Description |
|---|---|---|---|
quality |
string | release |
Quality to download. Allowed: release, staging, dev. |
| Host path | Container path | Purpose |
|---|---|---|
~/.aspire |
/var/lib/aspire-cli |
CLI state and configuration |
This directory is bind-mounted from the host so that CLI state is preserved across container rebuilds.
Because Docker cannot bind-mount a directory that does not yet exist, consuming devcontainer.json files should add an initializeCommand to pre-create this directory on the host before the container starts:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/sliekens/devcontainer-features/aspire-cli:1": {}
},
"initializeCommand": "mkdir -p \"$HOME/.aspire\""
}This feature is released under the MIT License.
The installed tool is subject to its own license: Aspire license.
- It's just Aspire now
- Install aspire binary to
/opt/aspire/binand expose it via a wrapper script so aspire bundle operations work as a nonroot user. - Hand ownership of
/opt/aspireto the container user at container start so bundle locking and extraction work without elevated privileges.
- Add trailing slash to bind mount source path to mark it explicitly as a directory.
- Use bind mount from host
~/.aspireinstead of a Docker volume for persistent state.
- Enabled container tunnel support by default for improved CLI experience in devcontainers (
ASPIRE_ENABLE_CONTAINER_TUNNELset totrue).
- Added recommended VS Code extension
microsoft-aspire.aspire-vscode.
- Initial release.