You need to install Eclipse Temurin 17 (or 21) and set the JAVA_HOME environment variable to its installation directory.
You can use one of the Dockerfiles based on your needs:
Dockerfile- requires local build firstDockerfile.build- builds inside Docker (JDK 17 only)Dockerfile.builder- recommended - multi-JDK support (17 and 21)
Supports both JDK 17 and JDK 21. Skips formatting checks that can have JDK version incompatibilities in container environments.
# Build with JDK 17 (default)
docker build -t omb-benchmark:jdk17 -f docker/Dockerfile.builder .
# Build with JDK 21
docker build -t omb-benchmark:jdk21 --build-arg JDK_VERSION=21 -f docker/Dockerfile.builder .Uses eclipse-temurin:17 and takes BENCHMARK_TARBALL as an argument.
While using this Dockerfile, you will need to build the project locally first.
mvn install -DskipTests
export BENCHMARK_TARBALL=package/target/openmessaging-benchmark-<VERSION>-SNAPSHOT-bin.tar.gz
docker build -t openmessaging-benchmark:latest --build-arg BENCHMARK_TARBALL . -f docker/DockerfileUses Maven to build the project inside Docker, then uses eclipse-temurin:17 as runtime.
This Dockerfile has no local dependency (you do not need Maven installed locally).
docker build -t openmessaging-benchmark:latest . -f docker/Dockerfile.build