elad-bar/DahuaVTO2MQTT

plese add ARMv7 compatibility

Opened this issue · 7 comments

udlch commented

at Armv7-A (QNAP NAS) get error

standard_init_linux.go:211: exec user process caused "exec format error"

big problem for pis running HA

standard_init_linux.go:219: exec user process caused: exec format error
please add raspberry 4

big problem for pis running HA

If you use HA, you can try to use this integration.

if someone can assist with that issue that would be great, i don't have a RP4 to test it,
but it seems that for ARMv7 need to install additional package within the container:
sudo apt-get install qemu binfmt-support qemu-user-static

in order to do that, you will need to change the entry point to different command, access to the terminal of the container, install the missing package and try running manually the DahuaVTO,py file.

thanks

Hi I tried to start the image with
sudo docker run -t -i eladbar/dahuavto2mqtt bash

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:219: exec user process caused: exec format error

I dont understand how I can spin-up an docker image that has an different architect.
If you got the command I'm happy to preform those for you!
:ediit:
For now I run it manual with python3 DahuaVTO.py as an service and for me it works great!
Only it would be nice to have an running docker.

Make for arm7:

FROM python:slim-buster
WORKDIR /app
COPY *.py ./
RUN apt update && apt upgrade && pip3 install paho-mqtt requests &&  pip install paho-mqtt requests
RUN chmod +x /app/DahuaVTO.py
ENTRYPOINT ["python3", "/app/DahuaVTO.py"]