Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Amazon Linux 2023 #657

Closed
dabbeg opened this issue Apr 18, 2023 · 4 comments
Closed

Add support for Amazon Linux 2023 #657

dabbeg opened this issue Apr 18, 2023 · 4 comments

Comments

@dabbeg
Copy link

dabbeg commented Apr 18, 2023

Amazon has released a new distribution AL2023.

https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-linux-2023/

I am testing it out and I see that Adoptium installer only supports AL2.

@karianna
Copy link
Contributor

@dabbeg Can you send the error message you're seeing?

@dabbeg
Copy link
Author

dabbeg commented Apr 21, 2023

Hey @karianna, here are the steps I go through.

$ docker run -it public.ecr.aws/amazonlinux/amazonlinux:2023 /bin/bash
Unable to find image 'public.ecr.aws/amazonlinux/amazonlinux:2023' locally
2023: Pulling from amazonlinux/amazonlinux
a1a2958782ce: Pull complete
Digest: sha256:141a4216109cab6b3ea5909b9e3e343e268b731631d148b09d2ceae08b329886
Status: Downloaded newer image for public.ecr.aws/amazonlinux/amazonlinux:2023

$ cat <<EOF > /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/amazonlinux/\$releasever/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
EOF

$ dnf install temurin-17-jdk
Amazon Linux 2023 repository                                                                                                                                                                                                                                                                                        1.8 MB/s |  13 MB     00:06
Adoptium                                                                                                                                                                                                                                                                                                             12  B/s |  80  B     00:06
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/amazonlinux/2023.0.20230419/x86_64/repodata/repomd.xml (IP: 54.149.64.156)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: Adoptium
Last metadata expiration check: 0:00:02 ago on Fri Apr 21 08:34:59 2023.
No match for argument: temurin-17-jdk
Error: Unable to find a match: temurin-17-jdk

This new AL2023 has the $releasever is 2023.0.20230419 and it is unable to find it in the package registry https://packages.adoptium.net/ui/native/rpm/amazonlinux/ which seems to support only version 2 for amazonlinux.

@sxa
Copy link
Member

sxa commented Apr 25, 2023

If you replace \$releasever with 2 it should still install and work ok, but it's something we should definitely look it. Thanks for raising this.

In the meantime if you try that and hit any problems, let us know as we're not currently performing any testing on AL2023

@tellison
Copy link
Contributor

tellison commented May 2, 2023

This issue was discussed at the Adoptium Project Management Committee meeting on April 26th.

We noted that Amazon Linux is not an officially supported distribution for use of Temurin, but we are are thankful that you are testing here and are interested in any findings, good or bad.

We also considered that it may be confusing if we enabled/described the install instructions for Temurin on that platform without it having undergone full testing at the project. Therefore we will aim to provision an Amazon Linux machine in our testing matrix to ensure things behave as expected there, and this may enable it to become a best-effort supported platform in future.

The list of project supported platforms and distributions is available on the Adoptium website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants