A docker image for GraalVM and Maven built with sdkman
It also installs native-image
Images are automatically published on Docker Hub when commit is tagged.
- GraalVM: 22.0.2-graalce
- Maven: 3.9.9
$ docker pull softinstigate/graalvm-maven
The default ENTRYPOINT
for this image is mvn
.
If you want to mvn clean install
your Java project, CD where the pom.xml is located, then:
$ docker pull softinstigate/graalvm-maven
$ docker run -it --rm \
-v "$PWD":/opt/app \
-v "$HOME"/.m2:/root/.m2 \
softinstigate/graalvm-maven \
clean package
The
-v "$HOME"/.m2:/root/.m2
parameter mounts your local~/.m2
Maven repository as a Docker volume.
Use the Native Maven Plugin in your pom.xml
.