mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-19 22:28:52 +01:00
53f84ec15b
With devcontainer 6 dbus-daemon is installed in the container, which is required for tests. The latest version also has support to disable AppArmor using the `SUPERVISOR_UNCONFINED` environment variable.
56 lines
1.8 KiB
JSON
56 lines
1.8 KiB
JSON
{
|
|
"name": "Supervisor dev",
|
|
"image": "ghcr.io/home-assistant/devcontainer:6-supervisor",
|
|
"overrideCommand": false,
|
|
"remoteUser": "vscode",
|
|
"containerEnv": {
|
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
|
},
|
|
"remoteEnv": {
|
|
"PATH": "${containerEnv:VIRTUAL_ENV}/bin:${containerEnv:PATH}"
|
|
},
|
|
"appPort": ["9123:8123", "7357:4357"],
|
|
"postCreateCommand": "bash devcontainer_setup",
|
|
"postStartCommand": "bash devcontainer_bootstrap",
|
|
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"charliermarsh.ruff",
|
|
"ms-python.pylint",
|
|
"ms-python.vscode-pylance",
|
|
"redhat.vscode-yaml",
|
|
"esbenp.prettier-vscode",
|
|
"GitHub.vscode-pull-request-github",
|
|
"GitHub.copilot"
|
|
],
|
|
"settings": {
|
|
"python.defaultInterpreterPath": "/home/vscode/.local/ha-venv/bin/python",
|
|
"python.pythonPath": "/home/vscode/.local/ha-venv/bin/python",
|
|
"python.terminal.activateEnvInCurrentTerminal": true,
|
|
"python.testing.pytestArgs": ["--no-cov"],
|
|
"pylint.importStrategy": "fromEnvironment",
|
|
"editor.formatOnPaste": false,
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnType": true,
|
|
"files.trimTrailingWhitespace": true,
|
|
"terminal.integrated.profiles.linux": {
|
|
"zsh": {
|
|
"path": "/usr/bin/zsh"
|
|
}
|
|
},
|
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
"[python]": {
|
|
"editor.defaultFormatter": "charliermarsh.ruff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mounts": [
|
|
"type=volume,target=/var/lib/docker",
|
|
"type=volume,target=/var/lib/containerd",
|
|
"type=volume,target=/mnt/supervisor",
|
|
"type=tmpfs,target=/tmp"
|
|
]
|
|
}
|