netdisco-docker icon indicating copy to clipboard operation
netdisco-docker copied to clipboard

Arm64

Open semirke opened this issue 1 year ago • 4 comments

Hi, is it possible to build these docker images for ARM64?

Thanks! Semirke

semirke avatar Jan 17 '24 10:01 semirke

this might help https://github.com/marketplace/actions/run-on-architecture

ollyg avatar Jan 18 '24 10:01 ollyg

Thanks @semirke we will look into it.

Out of interest, have you got Netdisco running on arm64 using the standard install? Have all the dependencies and the app worked OK?

ollyg avatar Jan 18 '24 10:01 ollyg

Hi,

I did a clean install on arm64v8/debian image and it installed without any issues following the installation manual, but havent tested the discovery yet.

Thanks :) Semirke

semirke avatar Jan 18 '24 12:01 semirke

I did some experimenting in my own dockerhub namespace to not mess with things. Unfortunately it's not straightforward to convert the current workflow:

  • we build all the images locally and then tag and push them
  • but there seems to be a long-lasting buildx issue that does not allow to transfer multiarch images to the local context (--load), apparently you can only push from there (https://github.com/docker/buildx/issues/59, https://github.com/docker/buildx/issues/1152 etc.)
  • so this either needs to be:
    • fixed in buildx
    • worked around with using something else than buildx (podman?)
    • or the workflow restructured so that the pushed images can be found by subsequent images (netdisco-base -> netdisco-backend etc.) while not messing up our dockerhub account with half-failed builds too much.

I'd probably try the second variant first. I can't spend much more time on this right now, but if somebody likes to pick it up, here is the partially adapted workflow: https://github.com/rc9000/netdisco/blob/master/.github/workflows/docker-multiarch.yml

rc9000 avatar Mar 15 '24 14:03 rc9000