mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 17:56:33 +00:00
VSCode: cleanup homeassistant on shutdown (#1481)
This commit is contained in:
parent
8115d2b3d3
commit
a2f06b1553
@ -75,6 +75,7 @@ function install_cli() {
|
|||||||
function setup_test_env() {
|
function setup_test_env() {
|
||||||
mkdir -p /workspaces/test_hassio
|
mkdir -p /workspaces/test_hassio
|
||||||
|
|
||||||
|
echo "Start Supervisor"
|
||||||
docker run --rm --privileged \
|
docker run --rm --privileged \
|
||||||
--name hassio_supervisor \
|
--name hassio_supervisor \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
@ -88,6 +89,10 @@ function setup_test_env() {
|
|||||||
-e SUPERVISOR_DEV=1 \
|
-e SUPERVISOR_DEV=1 \
|
||||||
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \
|
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \
|
||||||
homeassistant/amd64-hassio-supervisor:latest
|
homeassistant/amd64-hassio-supervisor:latest
|
||||||
|
|
||||||
|
if docker rm homeassistant 2> /dev/null; then
|
||||||
|
echo "Cleanup HomeAssistant instance"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Start Test-Env"
|
echo "Start Test-Env"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user