From d2db583ea4e59509a86fc96e303439f3bce811de Mon Sep 17 00:00:00 2001 From: David Denton Date: Wed, 4 Oct 2023 07:03:21 +0100 Subject: [PATCH] new java 21 graalvm version images --- amazoncorretto-lambda-runtime-arm64/Dockerfile | 2 +- amazoncorretto-lambda-runtime/Dockerfile | 2 +- .../Dockerfile | 2 +- .../README.md | 4 ++-- .../build-and-push.sh | 4 ++-- build-and-push-images.sh | 13 +++++++------ 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/amazoncorretto-lambda-runtime-arm64/Dockerfile b/amazoncorretto-lambda-runtime-arm64/Dockerfile index 91fcb17..95fdde3 100644 --- a/amazoncorretto-lambda-runtime-arm64/Dockerfile +++ b/amazoncorretto-lambda-runtime-arm64/Dockerfile @@ -1,5 +1,5 @@ # install base linux + tools -ARG AMAZON_CORRETTO_IMAGE=arm64v8/amazoncorretto:11.0.18 +ARG AMAZON_CORRETTO_IMAGE=arm64v8/amazoncorretto:21.0.0 FROM $AMAZON_CORRETTO_IMAGE RUN yum -y install zip diff --git a/amazoncorretto-lambda-runtime/Dockerfile b/amazoncorretto-lambda-runtime/Dockerfile index c4e4452..2207167 100644 --- a/amazoncorretto-lambda-runtime/Dockerfile +++ b/amazoncorretto-lambda-runtime/Dockerfile @@ -1,5 +1,5 @@ # install base linux + tools -ARG AMAZON_CORRETTO_IMAGE=amazoncorretto:11.0.18 +ARG AMAZON_CORRETTO_IMAGE=amazoncorretto:21.0.0 FROM $AMAZON_CORRETTO_IMAGE RUN yum -y install zip diff --git a/amazonlinux-java-graal-community-lambda-runtime/Dockerfile b/amazonlinux-java-graal-community-lambda-runtime/Dockerfile index 544d22e..eed0d00 100644 --- a/amazonlinux-java-graal-community-lambda-runtime/Dockerfile +++ b/amazonlinux-java-graal-community-lambda-runtime/Dockerfile @@ -1,5 +1,5 @@ # install base linux + tools -ARG AWS_LINUX_VERSION=2.0.20230119.1 +ARG AWS_LINUX_VERSION=2.0.20230912.0 FROM amazonlinux:$AWS_LINUX_VERSION RUN yum install -y gcc gcc-c++ libc6-dev binutils zlib1g-dev curl bash zlib zlib-devel tar zip gzip diff --git a/amazonlinux-java-graal-community-lambda-runtime/README.md b/amazonlinux-java-graal-community-lambda-runtime/README.md index 1e0ceed..a6490f0 100644 --- a/amazonlinux-java-graal-community-lambda-runtime/README.md +++ b/amazonlinux-java-graal-community-lambda-runtime/README.md @@ -1,4 +1,4 @@ -# http4k/amazonlinux-java-graal-ce-lambda-runtime +# http4k/amazonlinux-java-graal-community-lambda-runtime This image builds a runtime ZIP file containing a Java GraalVM binary for Amazon Linux. It is designed to work with a ShadowJar containing an http4k AWS Lambda function and, given a tasteful selection of technologies, should not require any customisation of the GraalVM configuration. @@ -9,7 +9,7 @@ Basic usage for an example project. Arguments to the docker run command: ```shell ./gradlew shadowJar docker run -v $(pwd):/source \ -http4k/amazonlinux-java-graal-ce-lambda-runtime:latest +http4k/amazonlinux-java-graal-community-lambda-runtime:latest ``` The Docker image itself includes 2 script files loaded from this repo: diff --git a/amazonlinux-java-graal-community-lambda-runtime/build-and-push.sh b/amazonlinux-java-graal-community-lambda-runtime/build-and-push.sh index e3494c1..8093693 100755 --- a/amazonlinux-java-graal-community-lambda-runtime/build-and-push.sh +++ b/amazonlinux-java-graal-community-lambda-runtime/build-and-push.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -export AWS_LINUX_VERSION=2.0.20230119.1 -export JAVA_VERSION=$1 +export AWS_LINUX_VERSION=2.0.20230912.0 +export JAVA_VERSION=jdk-$1 docker build --build-arg AWS_LINUX_VERSION=$AWS_LINUX_VERSION \ --build-arg JAVA_VERSION="$JAVA_VERSION" \ diff --git a/build-and-push-images.sh b/build-and-push-images.sh index 973102d..e808a16 100755 --- a/build-and-push-images.sh +++ b/build-and-push-images.sh @@ -2,23 +2,24 @@ set -eu docker login -JAVA_VERSIONS=("11.0.18" "17.0.6" "19.0.2") -GRAAL_JAVA_VERSIONS=("java11" "java17" "java19") +JAVA_VERSIONS=("11.0.18" "17.0.6" "19.0.2" "21.0.0") cd amazoncorretto-lambda-runtime for version in "${JAVA_VERSIONS[@]}"; do - ./build-and-push.sh $version + ./build-and-push.sh "$version" done cd .. cd amazoncorretto-lambda-runtime-arm64 for version in "${JAVA_VERSIONS[@]}"; do - ./build-and-push.sh $version + ./build-and-push.sh "$version" done cd .. -cd amazonlinux-java-graal-ce-lambda-runtime +GRAAL_JAVA_VERSIONS=("21.0.0") + +cd amazonlinux-java-graal-community-lambda-runtime for version in "${GRAAL_JAVA_VERSIONS[@]}"; do - ./build-and-push.sh $version + ./build-and-push.sh "$version" done cd ..