Support ${localWorkspaceFolder} when cloning in volume
@chrmarti is already working on this.
Since Jan 17, 2022.
Assessment
This issue has not been assessed yet.
Description
- VSCode Version: Version: 1.63.2 (Universal), Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
-Electron: 13.5.2, Chromium: 91.0.4472.164, Node.js: 14.16.0, V8: 9.1.269.39-electron.0, OS: kernel Darwin x64 21.2.0 - Local OS Version: MacOS 12.1 (21C52) (Monterey)
- Remote OS Version: Debian 11, kernel 5.10.76-linuxkit
- Remote Extension/Connection Type: Docker
- Logs: no relevant logs
Steps to Reproduce:
- Set up repository for Docker-from-Docker with
.devcontainer. - Set VS Code to "Clone Repository in Container Volume".
- Add
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" }todevcontainer.json, - See that
echo $LOCAL_WORKSPACE_FOLDERresolves to a raw string of${localWorkspaceFolder}inside the container, making it impossible to mount anything in a docker-from-docker scenario.
(This matches #3588, which was closed with this bug unfixed.)
Context: I have a repository with a complex build process involving a number of containers, which I am setting up for Codespaces. Because some prebuilt containers are releases from a private repository/build, I need to run tests on my machine, where they can access the pre-release builds for testing purposes. However, this is not possible, because the configuration that works for Codespaces does not work when run locally. It is probably possible to route around this with a patch hardcoding LOCAL_WORKSPACE_FOLDER, but this being necessary is a bug.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
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.
More from microsoft/vscode-remote-release
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/vscode-remote-release#11650 ·
-
ssh
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/vscode-remote-release#11583 ·
-
ssh
Difficulty 4/5 3-5 days Newbie friendliness 38/100
microsoft/vscode-remote-release#11861 ·
-
microsoft/vscode-remote-release#11860 · 1 comment · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
microsoft/vscode-remote-release#11859 ·