boson-project / buildpacks

Boson Project function buildpacks
Apache License 2.0
5 stars 11 forks source link

Support fast-jar for Quarkus #131

Closed matejvasek closed 2 years ago

matejvasek commented 2 years ago

Signed-off-by: Matej Vasek mvasek@redhat.com

matejvasek commented 2 years ago

@lance you can define layering by list of globs for each layer, those files/directories need to be under <app> directory (/workspace).

This allows to have artifacts that are changed often in separate layer. So if only app code is updated (not libraries) only 300KiB are pushed instead of 12MiB.

matejvasek commented 2 years ago

It wasn't obvious to me how to this from doc either. There aren't much examples.

matejvasek commented 2 years ago

The layering might be beneficial for other rumtimes too (e.g. putting node_modules into separate layer so changes to application code are can be pushed independently).

matejvasek commented 2 years ago

@lance shall I merge this?