KatharaFramework / Docker-Images

Dockerfiles and scripts to build Kathará Docker images.
https://www.kathara.org/
GNU General Public License v3.0
22 stars 10 forks source link

Simple changes on the road to multiarch support (hello ARM64) #3

Closed nopid closed 3 years ago

nopid commented 3 years ago

In order to properly work, an ARM64 version of Kathará not only requires a port of the main program but also ARM64 version of the images.

A simple way to achieve this is to use buildx to build multiarch images instead of single architecture images. The tool can build for every architecture and push to the registery in one command. I made a proof of concept, see https://hub.docker.com/r/nopid/base, https://hub.docker.com/r/nopid/quagga, etc. The images where build with commands like:

docker buildx build --platform linux/amd64,linux/arm64 -t nopid/base:debian10 --push .

in every debian10/* directory.

It produces multiarch images that would be transparent for the end-user.

lorenzo93 commented 3 years ago

Hi @nopid ,

I've just finished pushing to dockerhub the new images compiled for both amd64 and arm64. I borrowed some suggestions on how to write better Makefiles from your fork of this repo. :+1: