From 3598b8c48a512ce4ad5e509c766b973da0463f88 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Wed, 29 Nov 2023 20:37:42 +0100 Subject: [PATCH] devcontainer --- .devcontainer/devcontainer.json | 2 +- .vscode/launch.json | 15 +++++++++++++++ .vscode/tasks.json | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2e81bfe78..5369965ca 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "name": "Example devcontainer for add-on repositories", "image": "ghcr.io/home-assistant/devcontainer:addons", "appPort": ["7123:8123", "7357:4357"], - "postStartCommand": "bash devcontainer_bootstrap", + "postStartCommand": "sudo -E bash devcontainer_bootstrap", "runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"], "containerEnv": { "WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}" diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..2ba986f6f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cb4e05c51..f426c2c94 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,7 +4,7 @@ { "label": "Start Home Assistant", "type": "shell", - "command": "supervisor_run", + "command": "sudo chmod a+x /usr/bin/supervisor* && sudo -E supervisor_run", "group": { "kind": "test", "isDefault": true