Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide capability to generate java-artifacts needed for native-image generation, without triggering native-image generation itself #14007

Closed
turing85 opened this issue Dec 21, 2020 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@turing85
Copy link
Contributor

Description
The Guide on building a native executable outlines the possibility of using multistage-dockerfiles to build a native executable through a container. The approach outlined has two major disadvantages:

  • The whole application has to be rebuilt. in particular, all dependencies have to be downloaded. Through clever layering, we can cache some layers in which dependencies seldom change, but this approach will not cache all dependencies.
  • In a multi-module setup, we would have to generate an assembly of the root project and then copy this assembly to the container.

A more straight forward approach would be to build the java artifacts on the host-side and only perform native compilation within a container by copying the java-artifacts to the container and calling native-image directly.

Implementation ideas
A possibility would be to add either a property or a separate packaging type that executes the existing build-process for local native-image compilation, but skips the call to native-image ...

FTR: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Can.20we.20compile.20an.20uber-jar.20to.20native.20executable.3F

@turing85 turing85 added the kind/enhancement New feature or request label Dec 21, 2020
@ghost ghost added the triage/needs-triage label Dec 21, 2020
@geoand
Copy link
Contributor

geoand commented Jul 9, 2021

Actually this is a duplicate of #15208 for which a fix was added in #15233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants