From d9046ac0bc525dd0fb4e6523040bd51fc533f2a0 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 22 Mar 2017 21:19:59 +0100 Subject: [PATCH] cleanup boot scripts --- README.md | 3 +++ .../start-resin-supervisor | 7 ++----- supervisor/README.md | 20 +++++++++++++++++++ 3 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 supervisor/README.md diff --git a/README.md b/README.md index 930a2153a..ea57abbd5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/start-resin-supervisor b/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/start-resin-supervisor index 124105672..be33e699a 100644 --- a/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/start-resin-supervisor +++ b/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/start-resin-supervisor @@ -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} diff --git a/supervisor/README.md b/supervisor/README.md new file mode 100644 index 000000000..d9f20b994 --- /dev/null +++ b/supervisor/README.md @@ -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} +```