Multi-arch container images on DockerHub

2022-12-06 Thread Robert Munteanu
Hi, We had a user report that our official Docker image does not support architectures other than AMD64 [1]. M1 Macs and Raspberry Pis can't run the image with our current setup. On our side, we set up automated builds on Docker Hub using automated builds. Unforunately, Docker Hub autobuilds don'

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Jacob Wujciak
Hello Robert, I would suggest using GItHub Actions, there you can use the official suite of docker actions to build multiplatform images with little need for custom scripting [1]. Feel free to ping me in the ASF slack. Best Jacob [1]: https://github.com/docker/build-push-action On Tue, Dec 6, 2

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Jarek Potiuk
In Airflow we have a bit more complex setting (we are building 2x5x2 different images and they are different sets of them for different branches), Building images for Airflow takes quite some time (installing many dependencies) so qemu was out of the question (several hours to build single image).

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Zach Hoffman
in Traffic Control, we build an Alpine image < https://github.com/apache/trafficcontrol/pkgs/container/trafficcontrol%2Fci%2Ftrafficserver-alpine>, with Traffic Server baked into it, for amd64 and arm64 . Rather than building them both from the same machine, the amd64 and arm64 images in separate G

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Zach Hoffman
Oops, the container link got mangled, it was supposed to be < https://github.com/apache/trafficcontrol/pkgs/container/trafficcontrol/ci/trafficserver-alpine >. On Tue, Dec 6, 2022 at 9:38 AM Zach Hoffman wrote: > in Traffic Control, we build an Alpine image < > https://github.com/apache/trafficc

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Zach Hoffman
Never mind, the first link was better -Zach On Tue, Dec 6, 2022 at 9:46 AM Zach Hoffman wrote: > Oops, the container link got mangled, it was supposed to be < > https://github.com/apache/trafficcontrol/pkgs/container/trafficcontrol/ci/trafficserver-alpine > >. > > On Tue, Dec 6, 2022 at 9:38 AM

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Jarek Potiuk
Good one Zach. Yeah, I also played with building separately and combining the resulting image (`regctl` is a great tool that might help with it). But I found it quite brittle and "manual" - I really like the buildx approach when you can have multiple builder instances running in parallel. And ssh-

Re: Multi-arch container images on DockerHub

2022-12-06 Thread Allen Wittenauer
> On Dec 6, 2022, at 4:43 AM, Robert Munteanu wrote: > > I see two alternatives so far: > > 1. Moving to GitHub actions Apache Yetus did the move from docker hub builds to Github Actions because ... > 2. Use hooks to install qemu and 'fake' a multi-arch build on Docker > Hub