mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
cleanup boot scripts
This commit is contained in:
parent
822fdaa409
commit
d9046ac0bc
@ -1,2 +1,5 @@
|
|||||||
# HassIO
|
# HassIO
|
||||||
First private cloud OS for home automation. Based on ResinOS and Yocto Linux.
|
First private cloud OS for home automation. Based on ResinOS and Yocto Linux.
|
||||||
|
|
||||||
|
## Developer access to host
|
||||||
|
You can put your authorized_keys file into boot partition. After a boot it, you can acces to your device over ssh port 22222
|
||||||
|
@ -10,18 +10,15 @@ runSupervisor() {
|
|||||||
docker run --privileged --name resin_supervisor \
|
docker run --privileged --name resin_supervisor \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v $CONFIG_PATH:/boot/config.json \
|
-v $CONFIG_PATH:/boot/config.json \
|
||||||
|
-v $BOOT_MOUNTPOINT/system-connections/resin-sample:/boot/network \
|
||||||
-v /resin-data/resin-supervisor:/data \
|
-v /resin-data/resin-supervisor:/data \
|
||||||
-v /resin-data:/shared-data \
|
-v /resin-data:/shared-data \
|
||||||
-v /proc/net/fib_trie:/mnt/fib_trie \
|
|
||||||
-v /var/log/supervisor-log:/var/log \
|
-v /var/log/supervisor-log:/var/log \
|
||||||
-v /:/mnt/root \
|
|
||||||
-e DOCKER_ROOT=/mnt/root/var/lib/docker \
|
-e DOCKER_ROOT=/mnt/root/var/lib/docker \
|
||||||
-e DOCKER_SOCKET=/var/run/docker.sock \
|
-e DOCKER_SOCKET=/var/run/docker.sock \
|
||||||
-e BOOT_MOUNTPOINT=$BOOT_MOUNTPOINT \
|
|
||||||
-e LED_FILE=${LED_FILE} \
|
|
||||||
-e SUPERVISOR_IMAGE=${SUPERVISOR_IMAGE} \
|
-e SUPERVISOR_IMAGE=${SUPERVISOR_IMAGE} \
|
||||||
-e SUPERVISOR_TAG=${SUPERVISOR_TAG} \
|
-e SUPERVISOR_TAG=${SUPERVISOR_TAG} \
|
||||||
-e SUPERVISOR_SHARE=/shared-data \
|
-e SUPERVISOR_SHARE=/resin-data \
|
||||||
-e SUPERVISOR_NAME=resin_supervisor \
|
-e SUPERVISOR_NAME=resin_supervisor \
|
||||||
-e HOMEASSISTANT_REPOSITORY=${HOMEASSISTANT_REPOSITORY} \
|
-e HOMEASSISTANT_REPOSITORY=${HOMEASSISTANT_REPOSITORY} \
|
||||||
${SUPERVISOR_IMAGE}
|
${SUPERVISOR_IMAGE}
|
||||||
|
20
supervisor/README.md
Normal file
20
supervisor/README.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
## Run supervisor on a normal docker host
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --privileged --name resin_supervisor \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-v $CONFIG_PATH:/boot/config.json \
|
||||||
|
-v $BOOT_MOUNTPOINT/system-connections/resin-sample:/boot/network \
|
||||||
|
-v /resin-data/resin-supervisor:/data \
|
||||||
|
-v /resin-data:/shared-data \
|
||||||
|
-v /var/log/supervisor-log:/var/log \
|
||||||
|
-e DOCKER_ROOT=/mnt/root/var/lib/docker \
|
||||||
|
-e DOCKER_SOCKET=/var/run/docker.sock \
|
||||||
|
-e SUPERVISOR_IMAGE=${SUPERVISOR_IMAGE} \
|
||||||
|
-e SUPERVISOR_TAG=${SUPERVISOR_TAG} \
|
||||||
|
-e SUPERVISOR_SHARE=/resin-data \
|
||||||
|
-e SUPERVISOR_NAME=resin_supervisor \
|
||||||
|
-e HOMEASSISTANT_REPOSITORY=${HOMEASSISTANT_REPOSITORY} \
|
||||||
|
${SUPERVISOR_IMAGE}
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user