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