-
Notifications
You must be signed in to change notification settings - Fork 301
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
Test: "initializeCommand" in devcontainer.json #2407
Comments
I verified that a config such as I am not sure I understand the Case 1-2-3 matrix you ask for and I am also not skilled enough in remote containers to know how to set this up (I appreciate how this docs gave me a good step by step description). Are there docs for how to setup the other cases? |
Case 1 is really just https://github.com/microsoft/vscode-remote-containers/blob/master/CONTRIBUTING.md#single-container-with-dockerfile-or-image. It sounds like you already did that. Case 2 and 3 is https://github.com/microsoft/vscode-remote-containers/blob/master/CONTRIBUTING.md#repository-container with:
|
@chrmarti ok. any reason that command is not in the default commands list? |
@bpasero The command is there when you are not connected to a remote already. |
I tested on MacOS. Ran into a few hiccups but seems to work overall |
Blocked by the above issue. |
Verified that the blocking issue on Windows is resolved. |
Refs: #1045
Complexity: 3
On setting up DevContainers for testing: https://github.com/microsoft/vscode-remote-containers/blob/master/CONTRIBUTING.md#testing-remote-containers
"initializeCommand"
in the devcontainer.json is an optional property that can be set to a string (run in a shell) or an array of strings (run without shell). Verify:The working directory of the command should be the workspace folder. Except with the repository container, the command runs locally on the host OS.
The text was updated successfully, but these errors were encountered: