Sign inSign up

http4k/amazonlinux-java-graal-ce-lambda-runtime

Sponsored OSS

By http4k

Updated almost 3 years ago

DEPRECATED amazonlinux-java-graal-community-lambda-runtime instead

Image
0

6.8K

http4k/amazonlinux-java-graal-ce-lambda-runtime repository overview

http4k/amazonlinux-java-graal-ce-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.

Basic usage for an example project. Arguments to the docker run command:

  1. UBERJAR_PATH = path the UberJar. This is loaded from inside the container at source/<UBERJAR_PATH>
  2. OUTPUT_ZIP_PATH (optional) = path to the output Zipfile. Defaults to source/function.zip
./gradlew shadowJar
docker run -v $(pwd):/source \
http4k/amazonlinux-java-graal-ce-lambda-runtime:latest <UBERJAR_PATH> <OUTPUT_ZIP_PATH?>

The Docker image itself includes 2 script files loaded from this repo:

  • bootstrap - the standard bootstrap file used by the Aws Lambda runner. Detects and passes the lambda memory settings to the JVM.
  • packageZip - takes the input ShadowJar (renamed to function.jar), uses native-image to create a native binary, and creates the function.zip package.

Tag summary

Content type

Image

Digest

sha256:1acb6806a

Size

820.9 MB

Last updated

almost 3 years ago

docker pull http4k/amazonlinux-java-graal-ce-lambda-runtime

This week's pulls

Pulls:

49

Last week