eko/pihole-exporter

Raspberry PI support for Docker

Closed this issue · 23 comments

The Docker image does not seem to be multi architecture.
Are you planning on providing an ARM compatible Docker image?

eko commented

Hi @wesback,

You’re right, we should be able to build a Docker image for this architecture also.

I am off actually but I could have a look at it on next week

You can build by yourself w/ an one-line change, see:

jostyee@74b63fc

I have forked this project and provided multi-arch container images. Gitlab CI is much easier to integrate for this than travis IMO.

Sauce: https://gitlab.com/onedr0p/pihole-exporter-2 (don't mind the name I will change it to pihole-exporter in a week)
Images: https://hub.docker.com/r/onedr0p/pihole-exporter/tags

eko commented

Hi, sorry for the delay, ARMv7 is now the default architecture when building the Docker image.

@eko the request if for you to provide multi arch Container images, not to build only one arch. Please re-open this issue.

@eko take a look at how the digests/manifests appear on your image, and on the one I created.

https://hub.docker.com/r/ekofr/pihole-exporter/tags
vs
https://hub.docker.com/r/onedr0p/pihole-exporter/tags

Could you please revert 9d8446b as long as there is no image with a correct manifest since it breaks existing use-cases? See #25

As a workaround you could use a second branch which only builds arm images and push them to a arm-tag

Closed again? I would really like to see a multi-arch image so I don't need to maintain a fork of this project.

eko commented

I just reverted the change because of @HorayNarea comments and GitHub closes the issue again because I mentioned a fix in the commit message.

@onedr0p Why did you not opened a PR on this project?

@eko I do not know travis CI well enough, or if it even supports building multi-arch images. On Gitlab this was trivial for me.

Docker images now being created automatically. Did not tag issue since manifests cannot be created. Currently manifests are only supported with experimental docker features enabled on GitHub runners which they currently are not

Have you considered using Github Actions to build multi-arch images? I do this for an exporter I created.

https://github.com/onedr0p/radarr-exporter/blob/master/.github/workflows/main.yml

You can see all arch under one tag:

image

I'm trying to use this on my raspberry pi and still don't see support for arm :(
Is there any chance you would add it at some point? Thanks!

eko commented

Hi @JonAnder83,

I now have the following Docker images that support both 32 and 64bits arm architectures:

  • ekofr/pihole-exporter:arm32
  • ekofr/pihole-exporter:arm64
eko commented

I just switched to GitHub Actions instead of Travis-CI and also docker buildx (experimental) so now tagged images are available for the following architectures:

Capture d’écran 2020-05-05 à 14 17 58

I think this issue can be closed now :)

Hi @JonAnder83,

I now have the following Docker images that support both 32 and 64bits arm architectures:

* ekofr/pihole-exporter:arm32

* ekofr/pihole-exporter:arm64

Hi!
On a raspberry pi 3, I tried:
ekofr/pihole-exporter:arm32
and
ekofr/pihole-exporter:arm

And both got me the message:

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

Which usually means wrong architecture. :(

eko commented

@JonAnder83 Could you try the ekofr/pihole-exporter:0.0.9 image please? This is the latest multi-architecture image available here: https://hub.docker.com/layers/ekofr/pihole-exporter/0.0.9/images/sha256-9c32c4b09a3d271501896bcd938f0a54bb6e4c9bd6b44e42e77c44814ac3ea8d?context=repo

@JonAnder83 Could you try the ekofr/pihole-exporter:0.0.9 image please? This is the latest multi-architecture image available here: https://hub.docker.com/layers/ekofr/pihole-exporter/0.0.9/images/sha256-9c32c4b09a3d271501896bcd938f0a54bb6e4c9bd6b44e42e77c44814ac3ea8d?context=repo

Yes!! That one did the trick!
Please, feel free to count on me if you want to test for arm deployments in the future :)

eko commented

@JonAnder83 Great, the next images will use these types of multi-architecture too :)

Cool to hear that it's working for you now, and thank you for your proposition to test future releases on arm!

This issue is really old already but still curent.

It does work with 0.0.9 on my raspberry pi 4 but I tried :latest, :arm, :arm64 and to no avail.

I see docker images updated 3 days ago for arm architectures but they still give the error this issue refers to.

Any thoughts?

eko commented

Hi @rbosneag,

Thank you, I just removed the tags arm & arm64 and the GitHub Action that was building them: they should not be used anymore.

I now provide a multi-architecture docker image and the latest version you can use is ekofr/pihole-exporter:v0.0.11.

Thank you

Now, that was quick :)

I’ll try in a few minutes and get back with updates.

And…it works like a charm with :v0.0.11 👍

Thank you, @eko!