mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Fix issue with windows dev env
This commit is contained in:
parent
0a0a62f238
commit
3593826441
3
.gitignore
vendored
3
.gitignore
vendored
@ -95,6 +95,3 @@ ENV/
|
|||||||
.vscode/*
|
.vscode/*
|
||||||
!.vscode/cSpell.json
|
!.vscode/cSpell.json
|
||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
|
|
||||||
# Test Env
|
|
||||||
test_data/
|
|
@ -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" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user