I am comfortable to install via either approach directly in docker, but I would prefer to create hass.io addons for this.
So back to my original question: is there a correct way to use a pre-existing dockerhub image for a hass.io addon?
(as opposed to including a dockerfile in the addon to build an image)
BTW looks like Bestlibre’s grafana is for arm arch only
Still… armed with your advice I will progress with using the official grafana image from dockerhub…
You can also checkout my add-ons at https://github.com/notoriousbdg/hassio-addons for a couple more examples. The Gogs and Node-RED ones start with the official images from Docker hub and support armhf and amd64. I extended them to support config.json from hass.io.
I was thinking that, if a best practice HA <> Node-red integration is identified, the install of the node-red components for HA could be included in the hass.io addon so its integrated “out of the box”.
At one point, I had the Node-RED addon setup so it would install nodes that you define in the addons to be installed in the config. I ended up removing that because you can install them via the UI. I figured simpler was better, so I removed that feature.
Since I don’t have a Dockerfile for this addon, just a config file which set some environment values, I cannot use the multiple base image fonctionality. But since the addon is just a config.json, it is trivial to add it locally.
Perhaps a solution could be to use the multiple base image functiunality with a Dockerfile which does nothing… I will look into it.
I was reading it as that the dockerfile is a meta dockerfile, since it calls out to the existing images, which in turn were built by their own dockerfiles.
or something like that.
Of course taking from two different sources, potentially on different base images is probably a bad idea
And as you say, building locally is easy…
Anyway. If anyone needs it, my repo now has x86 grafana:
I’ve tested it as far as installing and starting and checking that the grafana UI is operational…
Hi,
i stumbled into this thread on my search for an integration of homegear in Hass.io.
Homegear (connection to Homematic devices) is available as a docker container (https://hub.docker.com/r/homegear/homegear/) - sorry for asking but i’m very new to this, is there a step-by-step guide to create a local addon for using the homegear docker container?
Thanks in advance!