Fix issue with windows dev env

This commit is contained in:
Pascal Vizeli 2019-08-14 10:37:39 +00:00
parent 0a0a62f238
commit 3593826441
2 changed files with 3 additions and 6 deletions

3
.gitignore vendored
View File

@ -95,6 +95,3 @@ ENV/
.vscode/* .vscode/*
!.vscode/cSpell.json !.vscode/cSpell.json
!.vscode/tasks.json !.vscode/tasks.json
# Test Env
test_data/

View File

@ -73,7 +73,7 @@ function install_cli() {
function setup_test_env() { function setup_test_env() {
mkdir -p test_data mkdir -p /workspaces/test_hassio
docker run --rm --privileged \ docker run --rm --privileged \
--name hassio_supervisor \ --name hassio_supervisor \
@ -81,9 +81,9 @@ function setup_test_env() {
--security-opt apparmor:unconfined \ --security-opt apparmor:unconfined \
-v /run/docker.sock:/run/docker.sock \ -v /run/docker.sock:/run/docker.sock \
-v /run/dbus:/run/dbus \ -v /run/dbus:/run/dbus \
-v "$(pwd)/test_data":/data \ -v "/workspaces/test_hassio":/data \
-v /etc/machine-id:/etc/machine-id:ro \ -v /etc/machine-id:/etc/machine-id:ro \
-e SUPERVISOR_SHARE="$(pwd)/test_data" \ -e SUPERVISOR_SHARE="/workspaces/test_hassio" \
-e SUPERVISOR_NAME=hassio_supervisor \ -e SUPERVISOR_NAME=hassio_supervisor \
-e SUPERVISOR_DEV=1 \ -e SUPERVISOR_DEV=1 \
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \ -e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \