Hi guys,
I’m just getting started with HA, love it so far.
Since pretty much all of my stuff lives in Docker containers on my RPi(s) I was pleasently surprised when I came across the Docker installation in the Getting Started guide. Since the official HASS Docker image is for the regular amd64 platform, I decided to build an Alpine Linux based armhf image with ZWAVE and all the bells and whistles and so on… The blueprint was the official HASS Dockerfile: https://github.com/home-assistant/home-assistant/blob/dev/Dockerfile .
In the process though, I came across some questions I was hoping you guys could help me out with. I’m aware that there are a lot of them, so please bear with me. I will go from top to bottom and reference the lines from the github repo.
- line 9 and line 13: why pip-install cython AND apt-install cython3? From what I understood the pip installation should suffice as it will compile the needed stuff for Python 3
- line 16, 17, 18, 19: in the https://github.com/home-assistant/home-assistant/blob/dev/script/build_python_openzwave script the pip-installed cython is downgraded to a lesser version. Question: why not pin it in the line 9
- line 22 installs all the requirements from the corresponding file: this is probably a HASS design question. I noticed that a first start, HASS is installing some packages needed for autodiscovery into the profile directory. For instance netdisco. I thought I install the netdisco beforehand so HASS has it at runtime. I learned that HASS is installing those things anyway… So the question is: why install all the packages, if HASS is reinstalling (some) stuff at runtime? I would argue that it adds weight to the image for stuff that is going to be installed at runtime anyway…
For the time being this should be it. I’d like to point out that this isn’t criticism, it’s just me trying to wrap my head around some of the HASS stuff. Being new to it I might very well overlook some obvious things! On a similar note I don’t quite know i this thread is best located under “installation”, so please feel free to move it to some place better suited.
Thanks a ton guys.
Cheers
Ralph