-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f26ff89
commit f247575
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "Example devcontainer for add-on repositories", | ||
"image": "ghcr.io/home-assistant/devcontainer:1-addons", | ||
"appPort": ["7123:8123", "7357:4357"], | ||
"postStartCommand": "bash devcontainer_bootstrap", | ||
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"], | ||
"containerEnv": { | ||
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"], | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true | ||
} | ||
} | ||
}, | ||
"mounts": [ "type=volume,target=/var/lib/docker" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Start Home Assistant", | ||
"type": "shell", | ||
"command": "supervisor_run", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Start Addon", | ||
"type": "shell", | ||
"command": "ha addons stop \"local_${input:addonName}\"; ha addons start \"local_${input:addonName}\"; docker logs --follow \"addon_local_${input:addonName}\"", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": false | ||
}, | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
}, | ||
"problemMatcher": [], | ||
"runOptions": { | ||
"reevaluateOnRerun": false | ||
} | ||
}, | ||
{ | ||
"label": "Rebuild and Start Addon", | ||
"type": "shell", | ||
"command": "ha addons rebuild \"local_${input:addonName}\"; ha addons start \"local_${input:addonName}\"; docker logs --follow \"addon_local_${input:addonName}\"", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": false | ||
}, | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"id": "addonName", | ||
"type": "pickString", | ||
"description": "Name of addon (to add your addon to this list, please edit .vscode/tasks.json)", | ||
"options": [ | ||
"cloudflared", | ||
] | ||
} | ||
] | ||
} |