-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev Container build fails on mount config if folders don't exist on local filesystem. #4271
Comments
Can you try removing the mounts, other than the Docker one from https://github.com/microsoft/AzureTRE/blob/main/.devcontainer%2Fdevcontainer.json#L24 I think it's as one of Azure CLI or VSCode have not been used in the VM. Let us know, thanks. |
Hi @marrobi , I have encountered the same issue as well just now. I was working inside a vm, and following our conversation, there might be an issue with the mounting in devcontainer when not all the required tools are in place. |
Seems like the discussion is happening here - devcontainers/spec#132 @stuartleeks raised it in 2022, maybe when building this devcontainer! Looks like could potentially make the directories using something similar to:
|
Fixes #4271 Add an `initializeCommand` to create necessary directories before the build. * Add `initializeCommand` in `devcontainer/devcontainer.json` to create `$HOME/.azure` and `$HOME/.config` directories if they do not exist. * Ensure the command runs before the container is created to prevent build failures due to missing directories. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/4271?shareId=XXXX-XXXX-XXXX-XXXX).
Hi, trying to setup the dev container to run the make auth and getting error as per attachment:
Any help greatly appreciated..!
The text was updated successfully, but these errors were encountered: