microsoft / microsoft/vscode-remote-release
Extend support for variables in `mount` syntax to include containerEnv, among others in devcontainer spec
@chrmarti is already working on this.
Since Jun 25, 2024.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
The mount property in the devcontainer spec says it supports variables as defined in variables in devcontainer.json.
As best I can tell some of the spec is not implemented, for example containerEnv does not resolve.
There's also no way (that I found) to easily grab the connecting user nor their home directory (I was trying with ${containerEnv:HOME}), which would very nice for mounting volumes into ~/.foo for tool foo that persists user configuration we don't want destroyed each time the workspace is opened (e.g. ~/.azure, ~/.promptflow, etc).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.