Support checkout directory which are not name supervisor (#4223)

VSCode by default bind mounts the project dir into /workspace. Our
scripts assume the Supervisor repository at /workspace/supervisor, but
there is no guarnatee for that with VSCode default behavior. Explicitly
mount it to /workspace/supervisor so we can safely make that assumption
in our devcontainer scripts.
This commit is contained in:
Stefan Agner 2023-04-03 20:44:59 +02:00 committed by GitHub
parent 8cf71ffa81
commit 2c2f1afc48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
{
"name": "Supervisor dev",
"image": "ghcr.io/home-assistant/devcontainer:supervisor",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/supervisor/,type=bind",
"workspaceFolder": "/workspace/supervisor/",
"appPort": ["9123:8123", "7357:4357"],
"postCreateCommand": "bash devcontainer_bootstrap",
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],