Running HASS.IO on Docker

Discussion room for Docker, a lightweight virtualization application that gives you the ability to run thousands of containers created by developers from all over the world on DSM
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
its
Novice
Novice
Posts: 58
Joined: Tue Jun 28, 2011 2:59 am

Running HASS.IO on Docker

Unread post by its » Thu Jan 11, 2018 11:41 pm

Hi

So I am trying to run hass.io on docker. I don't want to use the homeassistant/home-assistant image as that is not the hass.io image which supports plugins

So I did an install with script here https://github.com/home-assistant/hassi ... all-hassio

socat was missing so I installed entware and then installed the package

The script which does the install is having issues: https://raw.githubusercontent.com/home- ... io_install

I did some modifications to the script

Everything installs fine till it reaches "# Init system" part.

Code: Select all

# Init system
if [ "$INIT_SYSTEM" == "systemd" ]; then
    echo "[INFO] Init systemd"
    curl -sL "$URL_SERVICE_HASSIO" > "/etc/systemd/system/hassio-supervisor.service"
    curl -sL "$URL_SERVICE_HOSTCONTROL" > "/etc/systemd/system/hassio-hc.service"

    sed -i "s|%%BIN_DIR%%|$BIN_DIR|g" "/etc/systemd/system/hassio-hc.service"
    sed -i "s|%%BIN_DIR%%|$BIN_DIR|g" "/etc/systemd/system/hassio-supervisor.service"

    systemctl enable hassio-supervisor.service

    echo "[INFO] Start services"
    systemctl start hassio-hc.service
    systemctl start hassio-supervisor.service
fi
First of all /etc/systemd/system/ doesn't exist so I changed all the path to a local /volume1/hassio

But systemctl also don't exist in DSM 6.2 as well. I read that upstart exists apparently which is same. But I am not sure about this last piece of code

Can anyone help me with the last bit of code so that I can get both the scripts started and keep it running on reboots?

Code: Select all

    systemctl enable hassio-supervisor.service

    echo "[INFO] Start services"
    systemctl start hassio-hc.service
    systemctl start hassio-supervisor.service
    
Content of hassio-hc.service: https://github.com/home-assistant/hassi ... hc.service
Content of hassio-supervisor.service: https://github.com/home-assistant/hassi ... or.service
OLD: DS211j + 2 x 2TB Seagate ST2000DL003 - JBOD Individual Volume Setup
OLD: DS214play + 2 x 4TB WD Red WD40EFRX - JBOD Individual Volume Setup
CURRENT: DS918+ + 4 x 4TB WD Red WD40EFRX - SHR1

Post Reply

Return to “Docker”