Skip to content

Support Java 21 runtime #676

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

Closed
charlie-harvey opened this issue Sep 28, 2023 · 10 comments
Closed

Support Java 21 runtime #676

charlie-harvey opened this issue Sep 28, 2023 · 10 comments

Comments

@charlie-harvey
Copy link

Could we add support for Java 21 runtime. Thanks.

@charlie-harvey
Copy link
Author

Just like Lambda: aws/aws-lambda-base-images#113

@nindza
Copy link

nindza commented Oct 10, 2023

+1

@shorn
Copy link

shorn commented Oct 26, 2023

My workaround for codebuild project created via CDK, for a buildImage: LinuxBuildImage.STANDARD_7_0 environment:

phases: {
  'pre_build': {
    commands: [
      'echo "Installing Amazon Corretto 21..."',
      'wget --no-verbose -O corretto-21.0.1.12.1.tar.gz https://corretto.aws/downloads/resources/21.0.1.12.1/amazon-corretto-21.0.1.12.1-linux-x64.tar.gz',
      'mkdir -p /tmp/corretto21',
      'tar -zxf corretto-21.0.1.12.1.tar.gz -C /tmp/corretto21',
      'export PATH=/tmp/corretto21/amazon-corretto-21.0.1.12.1-linux-x64/bin:$PATH',
      'export JAVA_HOME=/tmp/corretto21/amazon-corretto-21.0.1.12.1-linux-x64',
      'java -version',
    ]
  },
}

@rmanig
Copy link

rmanig commented Nov 20, 2023

Another option is to roll your own codebuild image:

FROM public.ecr.aws/amazonlinux/amazonlinux:2023

RUN dnf install -y java-21-amazon-corretto-devel \
    && dnf clean all

# install other stuff

@AdamBien
Copy link

With the support for Java 21 in Lambdas -- CodeBuild should also ship with Java 21 out-of-the-box.

@charlie-harvey
Copy link
Author

charlie-harvey commented Nov 20, 2023 via email

@AdamBien
Copy link

AdamBien commented Nov 21, 2023

2 pizza teams that only communicate via API calls. There isn't always a grand plan to move lots of things at once at Amazon. So "should" is a really strong word. 😉

  1. The client perspective: CodeBuild has to support Java 21 and should be synchronized with Lambda and other service releases. End users / AWS clients must not care how AWS is internally organised. :-)

  2. The developer perspective: it would be nice to have Java 21 support in near future. I fully understand the complexities. Also they might be internal processes in place which make releases harder than expected.

I hope such issues are constructive and help internal teams to get the necessary resources.

Kudos to all 1-pizza teams at AWS!


On Mon, Nov 20, 2023, 3:06 PM Adam Bien @.> wrote: With the support for Java 21 in Lambdas -- CodeBuild should also ship with Java 21 out-of-the-box. — Reply to this email directly, view it on GitHub <#676 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPLI2PCVO7AQBEPGLDKF3YFOZ37AVCNFSM6AAAAAA5LPSYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZG4ZDGOJVG4 . You are receiving this because you authored the thread.Message ID: @.>

@zitreF
Copy link

zitreF commented Nov 22, 2023

does it work on linux?

@Dylan-AWS
Copy link
Contributor

Dylan-AWS commented Dec 14, 2023

CodeBuild released Java 21 in the AL:5.0 image and Ubuntu 7.0 (#689).

@Dylan-AWS
Copy link
Contributor

CodeBuild released Corretto 21 for ARM (#697)

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

8 participants