corretto-docker icon indicating copy to clipboard operation
corretto-docker copied to clipboard

Alpine aarch64/arm64 images

Open gregorkistler opened this issue 4 years ago • 26 comments

Any plans yet to build and provide also Docker images for architectures other than x86? :)

8-alpine-jre: Pulling from library/amazoncorretto
no matching manifest for linux/arm64/v8 in the manifest list entries

Building manually will also fail as the custom repo apk.corretto.aws does not contain any aarch64 directory:

fetch https://apk.corretto.aws/aarch64/APKINDEX.tar.gz
ERROR: https://apk.corretto.aws: Permission denied

Thanks guys!

gregorkistler avatar Nov 07 '20 15:11 gregorkistler

Hi, Exactly same problem here as well, we are blocked because of this. Please try to fix this ASAP.

Thanks, Venu

gvenu-devops avatar Jan 12 '21 21:01 gvenu-devops

Hi. Thanks for getting in touch. We don't yet have builds for Alpine Linux aarch64. We've taken note of the request.

davecurrie avatar Jan 12 '21 23:01 davecurrie

This would be great yeah. We use Jib to build multi-platform images for amd64 and arm64. It would be nice to be able to switch to the smaller Alpine images.

siwyd avatar Feb 25 '21 11:02 siwyd

any update on this? it's a show-stopper on AWS Graviton instances.

nicolabeghin avatar Mar 30 '21 21:03 nicolabeghin

patiently waiting for this AWS Graviton show stopper to be resolved....

tigerinus avatar Jun 04 '21 20:06 tigerinus

patiently waiting for this AWS Graviton show stopper to be resolved....

Same here!

choeflake avatar Jun 22 '21 11:06 choeflake

Bump. No progress on this? Seems weird given the investment in Gravition.

pdehlke avatar Jul 06 '21 20:07 pdehlke

Is this comming?

melaraj2 avatar Oct 26 '21 14:10 melaraj2

Any information about this? Don't understand what the problem is as alpine offers linux/arm64/v8 images and Coretto has arm64 builds available.

DennisBecker avatar Jan 06 '22 13:01 DennisBecker

This is really blocking me i want to use the amazoncorretto:11-alpine image as base for my project which i run on aws graviton. I don't understand why there is no arm64 build alpine itself is available as arm64....

wesleymooiman avatar Feb 02 '22 18:02 wesleymooiman

@davecurrie Can someone provide an update - it has been over a year now. We'd also like to play with Graviton, and M1 Macs are becoming more prevalent, but a lack of a Corretto ARM based Docker image is somewhat of an impediment that has us having to use other approaches (such as an OpenJDK/Debian image from https://hub.docker.com/r/arm64v8/openjdk/).

dankirkd avatar Feb 11 '22 20:02 dankirkd

I am also facing similar issues when using amazoncorretto:11-alpine

Error: Could not pull image amazoncorretto:11-alpine.
Pulling image 'amazoncorretto:11-alpine' failed: no matching manifest for linux/arm64/v8 in the manifest list entries

If I use amazoncorretto:11 it works across both Apple Intel and M1.

Looking for an amazoncorretto alpine image that works across both Apple Intel and M1. Any advice/suggestions?

pexa-abruno avatar Mar 02 '22 03:03 pexa-abruno

@pexa-abruno As far as I can tell, there are no musl/arm64 Corretto binaries, which are a prerequisite for making an image. You would have to build Corretto from source for musl/arm64, or wait for Amazon to release binaries and an image.

It's bizarre that it takes so long since they already have musl/amd64 and glibc/arm64, so it's most likely just a few CI/CD changes to build the extra target...

In the meantime you could use the amd64 alpine image on M1 (with the Rosetta performance hit) by passing --platform linux/amd64 to Docker.

jbg avatar Mar 02 '22 03:03 jbg

It's more complicated than just a CI/CD change, there is a lot of work that goes into validating new Corretto builds and making sure we can consistently deliver quarterly updates in sync with existing builds. :)

We plan to deliver this and work should be starting soon. We will likely start with Corretto 17, since Alpine code is integrated into upstream OpenJDK 17, and work down from there to 11 and 8.

We'll keep this issue updated with progress and any preview builds. Thanks for your patience.

davecurrie avatar Mar 02 '22 19:03 davecurrie

I'd put in a plug for starting with 11 and 8. That's what most people are using.

dankirkd avatar Mar 02 '22 20:03 dankirkd

I have found adoptopenjdk/openjdk11:jdk11u-nightly-slim to work across both Apple Intel and M1, however for production releases I would prefer to use amazoncorretto:11-alpine

Do we have an ETA for when amazoncorretto:11-alpine will support Apple M1?

andrewbruno avatar Mar 22 '22 11:03 andrewbruno

@davecurrie maybe i'm mistaken but aren't you already shipping Alpine amd64 binaries for 17, 11 and 8? So out of curiosity, why does it matter that OpenJDK 17 is already supporting Alpine? Corretto is already supporting Alpine/musl across the board. This is "just" building for a new arch, I can of course understand the need for verification though.

jbg avatar Mar 22 '22 12:03 jbg

I have found adoptopenjdk/openjdk11:jdk11u-nightly-slim to work across both Apple Intel and M1, however for production releases I would prefer to use amazoncorretto:11-alpine

The adoptopenjdk docker project is deprecated and shouldn't be used. The image you mentioned is over 6 months out of date and missing the last few quarters of security patches. The page says DEPRECATED; use https://hub.docker.com/_/eclipse-temurin/

lutkerd avatar Mar 24 '22 03:03 lutkerd

Thank you @lutkerd - Been using openjdk:11 https://hub.docker.com/_/openjdk with success.

andrewbruno avatar Mar 24 '22 11:03 andrewbruno

We are building multi architecture docker alpine image. And facing the same issue as discussed with installing in arm64 alpine while for amd64 it gets installed without any issue. Is corretto-jdk available now for alpine arm64 or is there any method i could achieve this . Anyone's reponse is much appreciated . Thanks

sakshith007 avatar Jul 28 '22 16:07 sakshith007

Right now there is no Alpine arm64 Corretto JDK available. However the work has been started and we plan to deliver it in the future.

Rudometov avatar Jul 29 '22 00:07 Rudometov

@Rudometov is there a timeline for when the Alpine arm64 Corretto JDK will be available ?

paul-murage avatar Aug 08 '22 18:08 paul-murage

Could we please get a timeline for when this will be available?

MrDienns avatar Sep 22 '22 10:09 MrDienns

It's great to see all the interest and we are planning to deliver as soon as possible. I can't post dates but we will update this issue as soon as we have something to share.

davecurrie avatar Sep 22 '22 21:09 davecurrie

I mean it's nice to hear from a committer here, but I hope you'll understand the frustration with "we're gonna fix this, really we are!" for going on two years now :(

pdehlke avatar Sep 23 '22 17:09 pdehlke

Really looking forward to this 🤞

As I see it needs the release of such package at Alpine repos first, so I thought we could push it over something more specific https://github.com/corretto/corretto-17/issues/96

janario avatar Oct 06 '22 08:10 janario

@davecurrie any update on this one?

bogdandrutu avatar Dec 07 '22 22:12 bogdandrutu

Throwing my name in the pile as someone who would also really appreciate this 👍🏼

bchilcott avatar Dec 30 '22 23:12 bchilcott

Impacted by this issue too, thanks for the work.

felixsilberstein avatar Jan 10 '23 15:01 felixsilberstein

We've given up waiting for such a thing and found that the Zulu images at https://github.com/zulu-openjdk/zulu-openjdk/tree/master/alpine are fine alternatives to Corretto, with comparable LTS lifespans https://www.azul.com/products/azul-support-roadmap/

We're using the ones at https://github.com/zulu-openjdk/zulu-openjdk/tree/master/alpine/17.0.5-17.38.21

Definitely worth a look, and nice and small, and although we compile with Java 11, we've found that running on Java 17 provides a significant performance improvement with zero code changes necessary.

YMMV, but it is better than waiting for more than you already may have for a Corretto Alpine ARM64 image. 😃

dankirkd avatar Jan 11 '23 07:01 dankirkd