microsoft / microsoft/vscode-remote-release

Extend support for variables in `mount` syntax to include containerEnv, among others in devcontainer spec

Open
#10,003 1 comment 2 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jun 25, 2024.

containers under-discussion
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.