mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
changed folders for devenv
This commit is contained in:
parent
3cfee211da
commit
a5bbc3188d
47 changed files with 62 additions and 37 deletions
|
@ -1,38 +1,41 @@
|
||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
|
|
||||||
{
|
{
|
||||||
"name": "Existing Docker Compose (Extend)",
|
"name": "Example devcontainer for add-on repositories",
|
||||||
|
"image": "ghcr.io/home-assistant/devcontainer:2-addons",
|
||||||
|
"appPort": [
|
||||||
// Sets the run context to one level up instead of the .devcontainer folder.
|
"7123:8123",
|
||||||
"context": "../vscode",
|
"7357:4357"
|
||||||
|
],
|
||||||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
|
"postStartCommand": "bash devcontainer_bootstrap",
|
||||||
"dockerFile": "../vscode/Dockerfile",
|
"runArgs": [
|
||||||
|
"-e",
|
||||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when
|
"GIT_EDITOR=code --wait",
|
||||||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
|
"--privileged"
|
||||||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
|
],
|
||||||
|
"containerEnv": {
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||||
// "features": {},
|
},
|
||||||
|
"customizations": {
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
"vscode": {
|
||||||
// "forwardPorts": [],
|
"extensions": [
|
||||||
|
"timonwong.shellcheck",
|
||||||
// Uncomment the next line if you want start specific services in your Docker Compose config.
|
"esbenp.prettier-vscode"
|
||||||
// "runServices": [],
|
],
|
||||||
|
"settings": {
|
||||||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
|
"terminal.integrated.profiles.linux": {
|
||||||
// "shutdownAction": "none",
|
"zsh": {
|
||||||
|
"path": "/usr/bin/zsh"
|
||||||
// Uncomment the next line to run commands after the container is created.
|
}
|
||||||
// "postCreateCommand": "cat /etc/os-release",
|
},
|
||||||
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
||||||
// Configure tool-specific properties.root
|
"editor.formatOnPaste": false,
|
||||||
// "customizations": {},
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
|
"files.trimTrailingWhitespace": true
|
||||||
// "remoteUser": "devcontainer"
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mounts": [
|
||||||
|
"type=volume,target=/var/lib/docker",
|
||||||
|
"type=volume,target=/mnt/supervisor"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.devcontainer/docker-compose.yml
|
||||||
|
todo.txt
|
20
.vscode/tasks.json
vendored
Normal file
20
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
2
todo.txt
2
todo.txt
|
@ -21,4 +21,4 @@ map:
|
||||||
- type: share
|
- type: share
|
||||||
read_only: false
|
read_only: false
|
||||||
- type: ssl
|
- type: ssl
|
||||||
read_only: false
|
read_only: false
|
0
vscode/Dockerfile → vscode-plugin/Dockerfile
Executable file → Normal file
0
vscode/Dockerfile → vscode-plugin/Dockerfile
Executable file → Normal file
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
vscode/rootfs/etc/motd → vscode-plugin/rootfs/etc/motd
Executable file → Normal file
0
vscode/rootfs/etc/motd → vscode-plugin/rootfs/etc/motd
Executable file → Normal file
0
vscode/rootfs/root/.zshrc → vscode-plugin/rootfs/root/.zshrc
Executable file → Normal file
0
vscode/rootfs/root/.zshrc → vscode-plugin/rootfs/root/.zshrc
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue