your-dns icon indicating copy to clipboard operation
your-dns copied to clipboard

ARM Compatible images?

Open Kampe opened this issue 5 years ago • 4 comments

Any chance there's plans in the future to have ARM compatible images created and pushed up to Dockerhub?

Kampe avatar Jul 02 '19 01:07 Kampe

It's probably easy for dns-over-https and Pomerium since they are written in Go. I'm not familiar with cross compile options for other C based projects.

Also I recently switched the base images to distroless which doesn't seem to provide arm version.

Out of curiosity, when you say arm, which version of ARM are you referring to?

yegle avatar Jul 02 '19 02:07 yegle

DOH server throwing exec format errors as well. I'm currently attempting to do without Pomerium as I'm just exposing pihole on port 80 locally, stealing a lot from you and building out as I go :)

But specifically looking for Raspberry Pi compatible Docker base images, seeing as I'm attempting to run all this on a Pi or two - can create my own I guess but didn't want to add to the confusion that is running all this via docker-compose on a Pi as there's so many images out there and not many, if at all, are made to work on a Pi unfortunately.

Kampe avatar Jul 02 '19 03:07 Kampe

Building an image for Go binary targeting ARM should be trivial, I believe you can grab my Docker file here, changing RUN CGO_ENABLED=0 go build . to RUN CGO_ENABLED=0 GOARCH=arm go build ., and change base image (both the build_env and the final base image) to an ARM one and that should be

yegle avatar Jul 02 '19 06:07 yegle

I'm working on using CoreDNS+Pihole to replace the previous setup. CoreDNS provides ARM images so it should allow you to run the full stack on a RasPi.

yegle avatar Sep 06 '19 15:09 yegle