Skip to content
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

.devcontainer Directory #879

Closed
alberk8 opened this issue Aug 28, 2024 · 4 comments
Closed

.devcontainer Directory #879

alberk8 opened this issue Aug 28, 2024 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster question Further information is requested

Comments

@alberk8
Copy link

alberk8 commented Aug 28, 2024

Is it possible to set the path for devcontainer.json file?. The project I am trying to run have the json file in subdirectory.

@bamurtaugh
Copy link
Member

Yes, this should be possible as specified in the spec: https://github.com/devcontainers/spec/blob/main/docs/specs/devcontainer-reference.md?plain=1#L17 (relevant previous issue devcontainers/spec#159 and PR on the VS Code side microsoft/vscode-remote-release#7548).

cc @chrmarti in case I'm missing anything

@alberk8
Copy link
Author

alberk8 commented Aug 29, 2024

I tried devcontainer up --workspaces-folder nf-interpreter/.devcontainer/ESP32 and it complain that the path Error: Dev container config (/nf/nf-interpreter/.devcontainer/ESP32/.devcontainer/devcontainer.json) not found.

@chrmarti
Copy link
Contributor

--workspaces-folder would point to the folder that is going to be mount into the container. You can use --config to provide the path for the devcontainer.json.

@chrmarti chrmarti self-assigned this Aug 30, 2024
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Aug 30, 2024
@alberk8
Copy link
Author

alberk8 commented Aug 31, 2024

--workspaces-folder would point to the folder that is going to be mount into the container. You can use --config to provide the path for the devcontainer.json.

Thanks. It works with the following cli

devcontainer up --workspaces-folder nf-interpreter --config nf-interpreter/.devcontainer/ESP32/devcontainer.json

@chrmarti chrmarti closed this as completed Sep 2, 2024
@chrmarti chrmarti added the question Further information is requested label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants