Merge pull request #1523 from felipecrs/fix-devcontainer
Fix devcontainer for latest Frigate and Home Assistant
This commit is contained in:
@@ -7,3 +7,5 @@ ARG HOME="/home/vscode"
|
||||
ENV VOLTA_HOME="${HOME}/.volta"
|
||||
ENV PATH="${VOLTA_HOME}/bin:${PATH}"
|
||||
RUN bash -c "$(curl -fsSL https://get.volta.sh)" -- --skip-setup
|
||||
|
||||
CMD ["sleep", "infinity"]
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
|
||||
{
|
||||
"dockerComposeFile": "../docker-compose.yml",
|
||||
"service": "dev",
|
||||
"service": "devcontainer",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
||||
"moby": false,
|
||||
"dockerDashComposeVersion": "v2"
|
||||
"moby": false
|
||||
}
|
||||
},
|
||||
"updateRemoteUserUID": true,
|
||||
"workspaceFolder": "${localWorkspaceFolder}",
|
||||
"shutdownAction": "stopCompose",
|
||||
"initializeCommand": [".devcontainer/initialize.sh"],
|
||||
"postCreateCommand": ["yarn", "install"],
|
||||
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
|
||||
"portsAttributes": {
|
||||
"10001": {
|
||||
@@ -25,8 +26,6 @@
|
||||
"onAutoForward": "silent"
|
||||
}
|
||||
},
|
||||
"initializeCommand": ".devcontainer/initialize.sh",
|
||||
"postCreateCommand": "yarn install",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
@@ -39,9 +38,12 @@
|
||||
"davidanson.vscode-markdownlint",
|
||||
"redhat.vscode-yaml",
|
||||
"lokalise.i18n-ally",
|
||||
"vitest.explorer",
|
||||
"inlang.vs-code-extension",
|
||||
"ms-azuretools.vscode-docker"
|
||||
],
|
||||
"settings": {
|
||||
"task.allowAutomaticTasks": "on",
|
||||
"files.eol": "\n",
|
||||
"editor.tabSize": 2,
|
||||
"editor.formatOnPaste": false,
|
||||
|
||||
Submodule .devcontainer/frigate-hass-integration updated: f54791cef3...070fbf2ecc
Vendored
+4
-1
@@ -20,7 +20,10 @@
|
||||
"endsPattern": "^created"
|
||||
}
|
||||
},
|
||||
"isBackground": true
|
||||
"isBackground": true,
|
||||
"runOptions": {
|
||||
"runOn": "folderOpen"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+2
-4
@@ -1,10 +1,8 @@
|
||||
---
|
||||
services:
|
||||
dev:
|
||||
init: true
|
||||
devcontainer:
|
||||
build: .devcontainer
|
||||
entrypoint: /usr/local/share/docker-init.sh
|
||||
command: sleep infinity
|
||||
init: true
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user