findepi / graalvm-docker

Apache License 2.0
28 stars 9 forks source link

GraalVM docker container

ci Docker Automated build

What’s inside

The image is similar to openjdk except, of course, this one comes with Graal VM.

Usage

Since GraalVM's binaries are on the $PATH, you can invoke them easily. Or build a derived image based on this.

$ docker run --rm findepi/graalvm java -version
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment GraalVM CE 17.0.8+7.1 (build 17.0.8+7-jvmci-23.0-b15)
OpenJDK 64-Bit Server VM GraalVM CE 17.0.8+7.1 (build 17.0.8+7-jvmci-23.0-b15, mixed mode, sharing)

… and for the polyglot image:

$ docker run -i --rm findepi/graalvm:polyglot python --version
GraalPy 3.10.8 (GraalVM CE Native 23.0.1)

$ docker run -i --rm findepi/graalvm:polyglot python -c 'print([42, 2**42])'
[42, 4398046511104]

… and for the Java 21 image:

$ docker run --rm findepi/graalvm:java21 java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15)
OpenJDK 64-Bit Server VM GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15, mixed mode, sharing)

See all available images at https://hub.docker.com/r/findepi/graalvm/tags.

License