Skip to content

Commit

Permalink
Update image versions for graalvm
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed May 8, 2024
1 parent 084450e commit 4f6c324
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#!/bin/sh
set -eu
export AWS_LINUX_VERSION=2.0.20230912.0
export JAVA_VERSION=jdk-$1
export AWS_LINUX_VERSION=$2

docker build --platform linux/arm64 --build-arg AWS_LINUX_VERSION=$AWS_LINUX_VERSION \
--build-arg ARCH=aarch64 \
--build-arg JAVA_VERSION="$JAVA_VERSION" \
-t http4k/amazonlinux-java-graal-community-lambda-runtime:latest-arm64 \
-t http4k/amazonlinux-java-graal-community-lambda-runtime:amazonlinux$AWS_LINUX_VERSION-"$JAVA_VERSION"-arm64 .


docker build --build-arg AWS_LINUX_VERSION=$AWS_LINUX_VERSION \
--build-arg ARCH=x64 \
--build-arg JAVA_VERSION="$JAVA_VERSION" \
Expand Down
15 changes: 9 additions & 6 deletions build-and-push-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@ docker login
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"
for java_version in "${JAVA_VERSIONS[@]}"; do
./build-and-push.sh "$java_version"
done
cd ..

cd amazoncorretto-lambda-runtime-arm64
for version in "${JAVA_VERSIONS[@]}"; do
./build-and-push.sh "$version"
for java_version in "${JAVA_VERSIONS[@]}"; do
./build-and-push.sh "$java_version"
done
cd ..

GRAAL_JAVA_VERSIONS=("21.0.0")
AWS_LINUX_VERSIONS=("2.0.20240412.0", "2023.4.20240416.0")

cd amazonlinux-java-graal-community-lambda-runtime
for version in "${GRAAL_JAVA_VERSIONS[@]}"; do
./build-and-push.sh "$version"
for java_version in "${GRAAL_JAVA_VERSIONS[@]}"; do
for linux_version in "${AWS_LINUX_VERSIONS[@]}"; do
./build-and-push.sh "$java_version" "$linux_version"
done
done
cd ..

0 comments on commit 4f6c324

Please sign in to comment.