home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.26k stars 30.6k forks source link

Raspberry PI (arm) Docker image #219

Closed techniq closed 8 years ago

techniq commented 9 years ago

Any change you could push a Raspberry Pi (arm) compatible docker image? The base image could probably use one of the following:

I'm not sure which of the python based images includes python 3 vs 2, so might be best to start with an OS base and add it as part of the Dockerfile.

balloob commented 9 years ago

I'm willing to setup a webhook to auto build a new image whenever the repo updates. I do not however have the resources to create and maintain one. Contributions are welcome.

techniq commented 9 years ago

I'll try to create an image soon. Sadly, I've not found a way to setup Docker Hub to build arm-based images. I typically setup a vagrant VM with qemu-arm-static to allow building arm images on a 64bit machine, so my workflow becomes:

It would be nice to have this setup in a webhook, but it would require a hosted VM running somewhere. I don't know if something like wercker could do that for us. I've not experimented with it yet.

techniq commented 8 years ago

There are now some Python 3 images available - https://github.com/resin-io-library/base-images/issues/7#event-467540456

Hopefully I can get some time over my vacation to get an image built

sesceu commented 8 years ago

I'm currently trying to get it running in docker on my beagle bone black, look here. It's in it's early stages, though, but it's automatically built on docker hub.

techniq commented 8 years ago

@sesceu Nice work.

I have a Docker container running on a Raspberry Pi now but went the "pragmatic / quick and dirty" way and just had the RPi do the build. I was considering doing exactly what you did with the resin.io cross build toolchain, although I thought it would be best to first create a Python 3 base image from resin/armv7hf-debian-qemu and then create the homeassistant image from that, that way you don't have to wait for the entire Python install process to run in case the docker cache were to get invalidated (or you build it on another machine), although that's kind of a moot point if you have the docker hub do the build.

balloob commented 8 years ago

We have a community mainteind RPi compatible image here https://hub.docker.com/r/homeassistant/rpi2-home-assistant/

techniq commented 8 years ago

👍