Page 1 of 1

ARM64 / Raspberry Pi 4

Posted: Tue Jul 28, 2020 11:23 am
by Vispen74
Is there any chance to make the docker image work on ARM? I´m running 64 bit Raspbian OS on a RPI4 8 Gb, have been trying to make the 1.35 version working. I get it work in a basic config with sgarzillas converted image of dlandon 1.32 and then a lot of upgrading inside the container, but it is restricted to Ubuntu 16.04 and I cant get the object identification to work om that one. Other versions than 1.35 I can´t get to work.

Or is there any way to convert the dlandon Zoneminder 1.35 docker to ARM64?

Re: ARM64 / Raspberry Pi 4

Posted: Tue Aug 18, 2020 7:02 pm
by burger
ARM has limited support with Docker in general. Many common images just don't exist for ARM.

Technically, if it can install on ARM, you might be able to get it to work, but I doubt it's worth the trouble.

Re: ARM64 / Raspberry Pi 4

Posted: Wed Aug 19, 2020 3:11 am
by iconnor
I will be rebuilding my pi build server (pi3b) with pi os 64bit shortly (sdcard is dying).

SO native raspbian image should be coming along in a bit.

The ubuntu arm 64bit images would likely work just fine.

As to docker you are on your own.

Re: ARM64 / Raspberry Pi 4

Posted: Mon Sep 28, 2020 5:13 pm
by Vispen74
Thanks.

Maybe I got it wrong, but I can´t find any Ubuntu arm 64 bit image for Zoneminder 1.35, only AMD 64 bit. But if there is a plan for a native Raspbian image I will sure wait for it :)

Re: ARM64 / Raspberry Pi 4

Posted: Tue Nov 10, 2020 3:31 pm
by nickmcg
There appears to be a 1.32 image here https://hub.docker.com/r/ponte124/zoneminder
I haven't managed to get it to work as it needs the sql server (which I haven't set up yet).

I've had another look at it, and it does have mariadb installed, but zoneminder isn't talking to it ...

HTH

Re: ARM64 / Raspberry Pi 4

Posted: Thu Nov 12, 2020 5:57 pm
by Vispen74
Well, I can´t get any picture/recordings to work on RPI4 other then with 1.35, and there is no 1.35 docker for arm what I have found.

Re: ARM64 / Raspberry Pi 4

Posted: Wed Jan 06, 2021 12:23 pm
by diegosc78
Hi. I'm the developer of ponte124/zoneminder docker image.

There are several images working on ARM64. I'm using now my image (1.32) at home without problems in a K8S deployment connected to 2 IP cams. Of course it needs to be connected to a MySQL Server (docker-compose, kubernetes or plain docker link).

If you need help here I am. I'm not using this forum (until now)... if I not reply you can try with my email (diego.souto@gmail.com)

I'm now trying with 1.34 (still with problems).

Honestly, I think my image (1.32) is not quite good (too many layers, not very secure,...), but it works. I hope someone in Zoneminder community take our work and produce a seriuous multiarch image.

Re: ARM64 / Raspberry Pi 4

Posted: Thu Jan 07, 2021 10:36 am
by Vispen74
On the 64 bit RPI4 Zoneminder 1.35 is the only version that works well. If I had the skills to develop i docker Image based on 1.35 I would do it at once.

Re: ARM64 / Raspberry Pi 4

Posted: Sun Jan 10, 2021 9:33 pm
by diegosc78
I have an image working on rpi4 and rock64 (arm64) in docker and kubernetes.

https://github.com/diegosc78/docker-zoneminder
docker pull ponte124/zoneminder:1.34-arm64v8

I hope zm community take this work and make official image multiarch

Re: ARM64 / Raspberry Pi 4

Posted: Sun Jan 17, 2021 7:58 pm
by Vispen74
diegosc78 wrote:
Sun Jan 10, 2021 9:33 pm
I have an image working on rpi4 and rock64 (arm64) in docker and kubernetes.

https://github.com/diegosc78/docker-zoneminder
docker pull ponte124/zoneminder:1.34-arm64v8

I hope zm community take this work and make official image multiarch
I can't pass the installation of SQL, segmentation fault. RPI 4, 64 bit. Using command from README file:

Code: Select all

docker run -d -e TZ=Europe/Stockholm -e MYSQL_USER=zmuser -e MYSQL_PASSWORD=zmpass -e MYSQL_DATABASE=zm -e MYSQL_ROOT_HOST=% --net net --name db mysql/mysql-server:5.7
I get: "The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"

Latest mysql container worked. Now I get errors starting zm, log:

Code: Select all

Starting pre-service scritps in /etc/my_init.d
*** Running: /etc/my_init.d/startup.sh
mysql: [Warning] Using a password on the command line interface can be insecure.
database already configured.
Please give a valid option
Usage:
    zmupdate.pl -c,--check | -f,--freshen | -v<version>,--version=<version>
    [-u<dbuser> -p<dbpass>]
Options:
    -c, --check - Check for updated versions of ZoneMinder -f, --freshen -
    Freshen the configuration in the database. Equivalent of old zmconfig.pl
    -noi --migrate-events - Update database structures as per
    USE_DEEP_STORAGE setting. -v<version>, --version=<version> - Force
    upgrade to the current version from <version> -u<dbuser>,
    --user=<dbuser> - Alternate DB user with privileges to alter DB
    -p<dbpass>, --pass=<dbpass> - Password of alternate DB user with
    privileges to alter DB -d<dir>,--dir=<dir> - Directory containing update
    files if not in default build location -interactive - interact with the
    user -nointeractive - do not interact with the user
*** Failed with return value: 255