Refresh the devcontainer
With the latest optimizations from upstream.
This commit is contained in:
@@ -8,8 +8,17 @@
|
|||||||
"41000": {
|
"41000": {
|
||||||
"label": "Rollup",
|
"label": "Rollup",
|
||||||
"onAutoForward": "silent"
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"hass:8123": {
|
||||||
|
"label": "Home Assistant",
|
||||||
|
"onAutoForward": "silent"
|
||||||
|
},
|
||||||
|
"frigate:5000": {
|
||||||
|
"label": "Frigate",
|
||||||
|
"onAutoForward": "silent"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"forwardPorts": ["hass:8123", "frigate:5000"],
|
||||||
"initializeCommand": ".devcontainer/initialize.sh",
|
"initializeCommand": ".devcontainer/initialize.sh",
|
||||||
"postCreateCommand": "yarn install",
|
"postCreateCommand": "yarn install",
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
|||||||
Submodule .devcontainer/frigate-hass-integration updated: dd90e2a412...16bd40d622
@@ -1,18 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
readonly wanted_line_key="LOCAL_WORKSPACE_FOLDER"
|
|
||||||
readonly wanted_line="${wanted_line_key}='${PWD}'"
|
|
||||||
readonly file=".env"
|
|
||||||
|
|
||||||
echo "Writing ${wanted_line} to ${file}" >&2
|
|
||||||
if [[ -f "${file}" ]] && grep --quiet "^${wanted_line_key}=" "${file}"; then
|
|
||||||
sed --in-place "s,^${wanted_line_key}=.*,${wanted_line}," "${file}"
|
|
||||||
else
|
|
||||||
echo "${wanted_line}" >>"${file}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
|
.devcontainer/frigate-hass-integration/.devcontainer/set_dot_env.sh
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ services:
|
|||||||
user: node
|
user: node
|
||||||
init: true
|
init: true
|
||||||
build: .devcontainer
|
build: .devcontainer
|
||||||
ports:
|
|
||||||
# Rollup
|
|
||||||
- 41000:41000
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user