moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 508 forks source link

Dockerfile-rpi not working #582

Closed jcsogo closed 7 years ago

jcsogo commented 7 years ago

I have tried first running the image of mosca from docker hub, but that one is compiled for amd64, not rpi (it would be a good idea to add a rpi version)

Then I have tried to compile my own one using Dockerfile-rpi. It was giving me several problems, until I decide to upgrade the rpi-node image from version 4 to version 6. This made everything compile and work.

-FROM hypriot/rpi-node:4 +FROM hypriot/rpi-node:6

mcollina commented 7 years ago

I've just triggered a build for dev-rpi. let me know if pulling that works.

mcollina commented 7 years ago

Hint, probably not. https://hub.docker.com/r/matteocollina/mosca/builds/bfzxinntndkq6zpbtdzoygm/

Docker Hub autobuild is not ARM.

mcollina commented 7 years ago

I've removed the autobuild for the rpi version, and updated the Dockerfile-rpi script.

jcsogo commented 7 years ago

You right and Docker Hub is not running arm builds, so all the rpi images are built elsewhere and pushed.

For reference, a solution to automate it https://forums.docker.com/t/automated-build-raspberry-pi-based-image-on-docker-hub/4155

Thanks for your help and for the piece of software itself.

El jue., 29 dic. 2016 19:43, Matteo Collina notifications@github.com escribió:

I've removed the autobuild for the rpi version, and updated the Dockerfile-rpi script.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcollina/mosca/issues/582#issuecomment-269673987, or mute the thread https://github.com/notifications/unsubscribe-auth/AADIOrWGxkbtVDn9Cp4L1U12HtXSsW3Aks5rM_8-gaJpZM4LXE9b .