paketo-buildpacks / native-image

A Cloud Native Buildpack that creates native images from Java applications
Apache License 2.0
49 stars 9 forks source link

investigate new Native Image Bundles (NIB) #270

Open anthonydahanne opened 1 year ago

anthonydahanne commented 1 year ago

Describe the Enhancement

GraalVM team recently announced a new release model, that will include Native Image Bundles (NIB) in the future GraalVM archives. https://medium.com/graalvm/a-new-graalvm-release-and-new-free-license-4aab483692f5

It would be nice to evaluate the impact it could have on the graalvm buildpack.

Possible Solution

The user could create a bundle from their jar:

native-image -jar MyApp.jar -bundle-create=…/path/to/<imagename>.nib

and later on create a native image with:

native-image -bundle-apply=…/path/to/<imagename>.nib

Motivation

we could decide to have the native-image buildpack support those uses cases