Svedrin / meshping

Pings a number of targets at once, collecting their response times in histograms. Deploy at strategic points in your network to detect weak links and gain insight to your network's topology.
MIT License
96 stars 9 forks source link

Building for ARMv8? #64

Open EtaoinWu opened 1 month ago

EtaoinWu commented 1 month ago

Currently the docker image for meshping is only built for x64 and armv7. Running the armv7 image directly on a armv8 machine gives me:

exec /usr/bin/dumb-init: exec format error

It would be great if there are container images built for armv8 available.

nook24 commented 1 month ago

arm64 support would be nice

Svedrin commented 1 month ago

While I do agree, I currently don't have an armv8 hardware to build on and I'm not sure my cross-compilation skills are up to par. I can give it a try, but I can't promise anything right now unfortunately.

Svedrin commented 1 month ago

hm. it seems I managed to build it, but for some reason I can't get it included in the latest tag. Could you try running from the latest-arm64-v8 tag?

docker pull svedrin/meshping:latest-arm64-v8

For some reason the DroneCI docker manifest plugin fails to reference this image:

Couldn't find or access image reference "svedrin/meshping:latest-arm64-v8". Skipping image.

Not sure what's wrong...

Svedrin commented 1 month ago

I tried dropping the v8 variant in https://github.com/Svedrin/meshping/commit/590fd1aeb56a75f5cffc236b447c3dfb77ee6017, but no luck. I'll have to look into this further.

EtaoinWu commented 1 month ago

Weird: I have two ARMv8 devices, one VPS (with Neoverse-N1) and one local (with Cortex-A53). The ARMv7 build runs on the cortex but gives the dumb-init: exec format error on the neoverse.

I just tested and can confirm that latest-arm64-v8 runs on both.

nook24 commented 1 month ago

Can confirm, runs on my Raspberry Pi 4 Broadcom BCM2711, Quad core Cortex-A72 (ARM v8)

Svedrin commented 1 month ago

Nice. I'm not sure how to deal with the tagging issue though, so I'll leave this issue open for the time being.