hardillb / TRADFRI2MQTT

MQTT Bridge for IKEA TRÅDFRI Light Gateway
https://www.hardill.me.uk/wordpress/2017/04/06/fist-pass-tradfri-mqtt-bridge/
Apache License 2.0
81 stars 12 forks source link

docker on rapsberry pi #12

Closed mo8Zomo0 closed 7 years ago

mo8Zomo0 commented 7 years ago

Hi!

I tried to run the docker part on a raspberry pi. Sadly I did not succeed. The version (1.5) which comes with Raspbian8 seems to be to old to work (like no mavin). I then tried some other version 1.11.1-1 installed it but fails:

docker build -t tradfri2mqtt .

Sending build context to Docker daemon 1.787 MB Step 1 : FROM maven:onbuild-alpine

Executing 2 build triggers...

Step 1 : ADD . /usr/src/app ---> Using cache Step 1 : RUN mvn install ---> Running in 534aced54827 rpc error: code = 2 desc = "oci runtime error: exec format error"

hardillb commented 7 years ago

You will need to change the FROM value at the top of the Dockerfile to a image that will run on a Raspberry Pi, I do not believe the alpine builds will work on ARM

mo8Zomo0 commented 7 years ago

ok, thats most likely the case, thank you for your quick answer! I will try the non docker way for now, thx!

AnderssonPeter commented 7 years ago

https://hub.docker.com/r/arm32v6/alpine/ should work on a raspberry pi.

mo8Zomo0 commented 7 years ago

@AnderssonPeter Thank you, might be interesting to try! Used it without docker, but might be worth a try!

hardillb commented 7 years ago

@AnderssonPeter If you actually look at the Dockerfile you will see that it's importing maven:onbuild-alpine so it's not just a need to find a alpine build that runs on Arm, it's the need to find a full maven stack packaged for Arm