Skip to content

Build a tiny Docker image with a custom modular Java run-time image for your app.

Notifications You must be signed in to change notification settings

98jan/maven-jlink-docker-example

 
 

Repository files navigation

maven-jlink-docker-example

Build Status

This project shows how you can build a tiny Docker image with a custom modular Java run-time image for your app.

Prerequisites

You will need at least Java 9: This project uses jlink to assemble modules and their dependencies into a custom Java run-time image.

Caveats

maven-jlink-plugin is still in alpha version and have some issues:

  • The current version avaiable at Maven Central repository (3.0.0-alpha-1) has a bug (See: MJLINK-4). We're using a SNAPSHOT version (3.0.0-alpha-2) and unpredictable errors may occur with SNAPSHOT updates.
  • JDK jmods folder is always relative to jlink binary location and the generated Java run-time image may NOT be compatible with the Docker base image (See: MJLINK-6).

About

Build a tiny Docker image with a custom modular Java run-time image for your app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%