ARM64 / Raspberry Pi 4

Support for the docker image maintained by dlandon
Post Reply
Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

ARM64 / Raspberry Pi 4

Post by Vispen74 » Tue Jul 28, 2020 11:23 am

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?

burger
Posts: 224
Joined: Mon May 11, 2020 4:32 pm

Re: ARM64 / Raspberry Pi 4

Post by burger » Tue Aug 18, 2020 7:02 pm

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.
fastest way to test streams:
ffmpeg -i rtsp://<ipaddress>:554/path output.mp4
from terminal, and run through paths on ispydb or in zm hcl

If you are new to security software, read this:
https://wiki.zoneminder.com/Dummies_Guide

User avatar
iconnor
Posts: 1432
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ARM64 / Raspberry Pi 4

Post by iconnor » Wed Aug 19, 2020 3:11 am

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.

Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

Re: ARM64 / Raspberry Pi 4

Post by Vispen74 » Mon Sep 28, 2020 5:13 pm

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 :)

nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Re: ARM64 / Raspberry Pi 4

Post by nickmcg » Tue Nov 10, 2020 3:31 pm

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

Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

Re: ARM64 / Raspberry Pi 4

Post by Vispen74 » Thu Nov 12, 2020 5:57 pm

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.

diegosc78
Posts: 2
Joined: Wed Jan 06, 2021 12:16 pm

Re: ARM64 / Raspberry Pi 4

Post by diegosc78 » Wed Jan 06, 2021 12:23 pm

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.

Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

Re: ARM64 / Raspberry Pi 4

Post by Vispen74 » Thu Jan 07, 2021 10:36 am

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.

diegosc78
Posts: 2
Joined: Wed Jan 06, 2021 12:16 pm

Re: ARM64 / Raspberry Pi 4

Post by diegosc78 » 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

Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

Re: ARM64 / Raspberry Pi 4

Post by Vispen74 » Sun Jan 17, 2021 7:58 pm

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

Post Reply

Who is online

Users browsing this forum: asker and 2 guests