chore: Revamp devcontainer (#2021)
Depends on https://github.com/blakeblackshear/frigate-hass-integration/pull/884.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
|
||||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
|
||||
|
||||
USER vscode
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@
|
||||
},
|
||||
"updateRemoteUserUID": true,
|
||||
"workspaceFolder": "${localWorkspaceFolder}",
|
||||
"initializeCommand": [".devcontainer/initialize.sh"],
|
||||
"initializeCommand": [".devcontainer/scripts/devcontainer_initialize.sh"],
|
||||
"postCreateCommand": ["yarn", "install"],
|
||||
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
|
||||
"forwardPorts": [10001, "homeassistant:8123", "frigate:5000"],
|
||||
"portsAttributes": {
|
||||
"10001": {
|
||||
"label": "Rollup",
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
"hass:8123": {
|
||||
"homeassistant:8123": {
|
||||
"label": "Home Assistant",
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
@@ -29,17 +29,16 @@
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"github.vscode-pull-request-github",
|
||||
"eamodio.gitlens",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"bierner.lit-html",
|
||||
"runem.lit-plugin",
|
||||
"davidanson.vscode-markdownlint",
|
||||
"redhat.vscode-yaml",
|
||||
"lokalise.i18n-ally",
|
||||
"vitest.explorer",
|
||||
"inlang.vs-code-extension",
|
||||
"YoavBls.pretty-ts-errors",
|
||||
"github.vscode-pull-request-github",
|
||||
"github.vscode-github-actions",
|
||||
"ms-azuretools.vscode-docker"
|
||||
],
|
||||
"settings": {
|
||||
@@ -50,10 +49,7 @@
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true,
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"[json]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[jsonc]": {
|
||||
"[json][jsonc][yaml][markdown][typescript][javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
|
||||
Submodule .devcontainer/frigate-hass-integration updated: 070fbf2ecc...421ed6594b
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
git submodule update --init
|
||||
|
||||
.devcontainer/frigate-hass-integration/.devcontainer/set_dot_env.sh
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
git submodule update --init
|
||||
|
||||
.devcontainer/frigate-hass-integration/.devcontainer/scripts/devcontainer_initialize.sh
|
||||
|
||||
echo "$0 finished." >&2
|
||||
Reference in New Issue
Block a user