wildfly / wildfly-charts

Helm Charts for WildFly
https://docs.wildfly.org/wildfly-charts/
Apache License 2.0
3 stars 14 forks source link

As a Bootable Jar user, I want to use the OpenJDK runtime image #80

Open jmesnil opened 2 years ago

jmesnil commented 2 years ago

OpenJDK now offers runtime image that contains only what is needed to run Java application and nothing to build it. This enables to create application image with a smaller size and less susceptible to security issues.

Currently, the Helm Chart for WildFly do not leverage this runtime image and create the application image from the OpenJDK S2I builder image (which contains eg Maven in addition to the Java runtime).

It should be possible for a Bootable Jar user to specify that the application image should be built from the OpenJDK runtime image.

Describe the solution you'd like

Add a field named build.bootableJar.runtime with a boolean value (false by default). Add a field named build.bootableJar.runtimeImage with a default value of [registry.access.redhat.com/ubi8/openjdk-11-runtime:latest](http://registry.access.redhat.com/ubi8/openjdk-11-runtime:latest)

References

jmesnil commented 2 years ago

@mvocale FIY