Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry PI support for Docker #13

Closed
wesback opened this issue Aug 9, 2019 · 23 comments
Closed

Raspberry PI support for Docker #13

wesback opened this issue Aug 9, 2019 · 23 comments

Comments

@wesback
Copy link

wesback commented Aug 9, 2019

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

@eko
Copy link
Owner

eko commented Aug 10, 2019

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

@jostyee
Copy link

jostyee commented Aug 11, 2019

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

jostyee@74b63fc

@onedr0p
Copy link

onedr0p commented Feb 1, 2020

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 eko closed this as completed in 9d8446b Feb 1, 2020
@eko
Copy link
Owner

eko commented Feb 1, 2020

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

@onedr0p
Copy link

onedr0p commented Feb 1, 2020

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

@onedr0p
Copy link

onedr0p commented Feb 1, 2020

@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

@eko eko reopened this Feb 1, 2020
@HorayNarea
Copy link

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

@eko eko closed this as completed in fe5156c Feb 6, 2020
@onedr0p
Copy link

onedr0p commented Feb 6, 2020

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
Copy link
Owner

eko commented Feb 6, 2020

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 eko reopened this Feb 6, 2020
@onedr0p
Copy link

onedr0p commented Feb 6, 2020

@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.

@SShah7433
Copy link
Contributor

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

@onedr0p
Copy link

onedr0p commented Apr 5, 2020

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

@JonAnder83
Copy link

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
Copy link
Owner

eko commented May 4, 2020

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
Copy link
Owner

eko commented May 5, 2020

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

@eko eko closed this as completed May 5, 2020
@JonAnder83
Copy link

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
Copy link
Owner

eko commented May 5, 2020

@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
Copy link

@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
Copy link
Owner

eko commented May 5, 2020

@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!

jchorl added a commit to jchorl/dockerfiles that referenced this issue May 31, 2020
jchorl added a commit to jchorl/dockerfiles that referenced this issue May 31, 2020
@rbosneag
Copy link

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
Copy link
Owner

eko commented Oct 12, 2021

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

@rbosneag
Copy link

Now, that was quick :)

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

@rbosneag
Copy link

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

Thank you, @eko!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants