minideb icon indicating copy to clipboard operation
minideb copied to clipboard

Arm64 support

Open JorritPosthuma opened this issue 5 years ago • 10 comments

Hi!

I was wondering if arm64 support is on your roadmap? A lot of downstream tools (Postgres, Mongo, Redis) support arm64, but the docker images published are amd64 only. Is it something you can/would like to support? Especially nowadays with ARM64 based AWS instances (Amazon EC2 A1) and the new Raspberry Pi 4, it becomes more and more useful :).

JorritPosthuma avatar Dec 11 '19 07:12 JorritPosthuma

Thanks for your feedback. At this moment we do not have any ETA for arm64 platform. Right now we are focusing on expanding and improving our containers & Kubernetes Charts catalog.

beltran-rubo avatar Dec 11 '19 07:12 beltran-rubo

Alright! Thanks for letting me know :). Is it possible to use normal Debian as base image? Or is that missing a lot?

JorritPosthuma avatar Dec 12 '19 09:12 JorritPosthuma

Do you mean to replace FROM:minideb and use other Debian? It should work because minideb is just a small version of a Debian distribution but it is only supported a x86_64 architecture. The binaries for postgresql, mongo, redis, ... are also x86_64.

beltran-rubo avatar Dec 12 '19 12:12 beltran-rubo

Yes, that was the idea. Switch to FROM debian and if the Postgres binary is build as part of the Dockerfile, then that's it. But otherwise replace it with an arm64 build :).

JorritPosthuma avatar Dec 12 '19 13:12 JorritPosthuma

In that case that would not work. The containers do not run the compilation at build time. The Postgres binaries or other component binaries are already compiled for x86_64 so will not work on top of arm64.

beltran-rubo avatar Dec 12 '19 14:12 beltran-rubo

Hi!

I was wondering if arm64 support is on your roadmap? A lot of downstream tools (Postgres, Mongo, Redis) support arm64, but the docker images published are amd64 only. Is it something you can/would like to support? Especially nowadays with ARM64 based AWS instances (Amazon EC2 A1) and the new Raspberry Pi 4, it becomes more and more useful :).

+1

rkristelijn avatar Jan 07 '20 20:01 rkristelijn

FYI, I just needed the same thing for provisioning multi-arch accelerator base containers, so I ended up just hacking up the build scripts, building it on amd64 and arm64 and manually constructing the manifest. There's now an adaptant/minideb multi-arch image that includes both.

It should be easy enough to hack up the scripts to use buildx, but I haven't had the time to look at this yet.

pmundt avatar Jul 07 '20 17:07 pmundt

It should be easy enough to hack up the scripts to use buildx, but I haven't had the time to look at this yet.

One concern would be whether that produced reproducible builds.

Does debian-slim have arm64 images?

james-w avatar Jul 07 '20 19:07 james-w

@james-w Yes, of course, there is no real difference in image size for the x86_64 and arm64 builds.

pmundt avatar Jul 07 '20 21:07 pmundt

Yes, debian-slim has arm64 images, so that would be an option for anyone that wants minimial debian images for arm64 until minideb has support.

james-w avatar Jul 09 '20 08:07 james-w