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

Separating Java and native image compilation #4648

Closed
squakez opened this issue Aug 4, 2023 · 0 comments · Fixed by #4764
Closed

Separating Java and native image compilation #4648

squakez opened this issue Aug 4, 2023 · 0 comments · Fixed by #4764
Assignees
Labels
area/quarkus Related to the Quarkus runtime kind/feature New feature or request
Milestone

Comments

@squakez
Copy link
Contributor

squakez commented Aug 4, 2023

We have a dynamic builder container image in order to include into it the tooling required to build Quarkus native image, ie native-image and graal-vm. However we can split the source generation and later the native compilation and get rid off the dynamic builder container [1].

With this approach we can think to change the native package type with the native-source and let the build phase create the source eventually required by the native image to compile natively in a following step.

[1] https://quarkus.io/guides/building-native-image#separating-java-and-native-image-compilation

@squakez squakez added the kind/feature New feature or request label Aug 4, 2023
@squakez squakez added this to the 2.1.0 milestone Aug 4, 2023
@squakez squakez self-assigned this Aug 9, 2023
@squakez squakez changed the title Remove kamel builder command Separating Java and native image compilation Aug 10, 2023
@squakez squakez added the area/quarkus Related to the Quarkus runtime label Aug 10, 2023
@squakez squakez removed their assignment Aug 10, 2023
@squakez squakez mentioned this issue Sep 15, 2023
@squakez squakez self-assigned this Sep 18, 2023
squakez added a commit to squakez/camel-k that referenced this issue Sep 20, 2023
squakez added a commit to squakez/camel-k that referenced this issue Sep 25, 2023
* Move the previous logic to native-source package type
* A new task takes care to trigger a pipeline task to run Native Image
* Split the builder task into 2 tasks
   - builder takes care of the building part (mvn package)
   - package task does the packaging (after custom tasks)

Ref apache#4648
squakez added a commit to squakez/camel-k that referenced this issue Sep 25, 2023
* Move the previous logic to native-source package type
* A new task takes care to trigger a pipeline task to run Native Image
* Split the builder task into 2 tasks
   - builder takes care of the building part (mvn package)
   - package task does the packaging (after custom tasks)

Ref apache#4648
squakez added a commit to squakez/camel-k that referenced this issue Sep 26, 2023
* Move the previous logic to native-source package type
* A new task takes care to trigger a pipeline task to run Native Image
* Split the builder task into 2 tasks
   - builder takes care of the building part (mvn package)
   - package task does the packaging (after custom tasks)

Ref apache#4648
squakez added a commit to squakez/camel-k that referenced this issue Oct 4, 2023
* Move the previous logic to native-source package type
* A new task takes care to trigger a pipeline task to run Native Image
* Split the builder task into 2 tasks
   - builder takes care of the building part (mvn package)
   - package task does the packaging (after custom tasks)

Ref apache#4648
squakez added a commit that referenced this issue Oct 4, 2023
* Move the previous logic to native-source package type
* A new task takes care to trigger a pipeline task to run Native Image
* Split the builder task into 2 tasks
   - builder takes care of the building part (mvn package)
   - package task does the packaging (after custom tasks)

Ref #4648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/quarkus Related to the Quarkus runtime kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant