cleanup boot scripts

This commit is contained in:
Pascal Vizeli 2017-03-22 21:19:59 +01:00
parent 822fdaa409
commit d9046ac0bc
3 changed files with 25 additions and 5 deletions

View File

@ -1,2 +1,5 @@
# HassIO
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

View File

@ -10,18 +10,15 @@ runSupervisor() {
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 /proc/net/fib_trie:/mnt/fib_trie \
-v /var/log/supervisor-log:/var/log \
-v /:/mnt/root \
-e DOCKER_ROOT=/mnt/root/var/lib/docker \
-e DOCKER_SOCKET=/var/run/docker.sock \
-e BOOT_MOUNTPOINT=$BOOT_MOUNTPOINT \
-e LED_FILE=${LED_FILE} \
-e SUPERVISOR_IMAGE=${SUPERVISOR_IMAGE} \
-e SUPERVISOR_TAG=${SUPERVISOR_TAG} \
-e SUPERVISOR_SHARE=/shared-data \
-e SUPERVISOR_SHARE=/resin-data \
-e SUPERVISOR_NAME=resin_supervisor \
-e HOMEASSISTANT_REPOSITORY=${HOMEASSISTANT_REPOSITORY} \
${SUPERVISOR_IMAGE}

20
supervisor/README.md Normal file
View 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}
```