Docker container with GraalVM CE

To use the Docker container with GraalVM CE, use the docker pull command:

docker pull oracle/graalvm-ce

The image is based on Oracle Linux and has GraalVM CE downloaded, unzipped and made available. It means that Java, JavaScript, Node and the LLVM interpreter are available out of the box.

You can start a container and enter the bash session with the following run command:

$ docker run -it oracle/graalvm-ce bash

Check that java, js and other commands work as expected.

bash-4.2# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-20191009173705.graal.jdk8u-src-tar-gz-b07)
OpenJDK 64-Bit GraalVM CE 19.3.1 (build 25.242-b07-jvmci-19.3-b06, mixed mode)
bash-4.2# node
Welcome to Node.js v12.14.0.
Type ".help" for more information.
> 8 + 1
9
> process.exit()
bash-4.2# lli --version
LLVM (GraalVM CE Native 19.3.1)
bash-4.2#

Comments