quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

add libcap-dev to ubi-quarkus-native-image* (or create additional one with library)

Open alexeysharandin opened this issue 3 years ago • 6 comments

Description

libcap-dev used in https://github.com/quarkiverse/quarkus-jef at this moment to check linux capabilities to execute HW integrated code.

Quarkus builds using Ubuntu and not a problem to add

sudo apt-get install -y libcap-dev

to build.xml

But for native-image genearation in quarkus-ecosystem-ci Quarkus team using ubi-quarkus-native-image* what based on RHEL8. In the RHEL8 no possibility to install libcap-dev on top over rpm package manager because it's require subscription.

Is possible to create new image or add libcap-dev to main image?

Implementation ideas

No response

alexeysharandin avatar Jun 22 '22 09:06 alexeysharandin

@cescoffier @tqvarnst any ideas on how to solve this ?

maxandersen avatar Jun 22 '22 09:06 maxandersen

We are in the process of completely redesigning how the images are built. I'm adding this as a requirement. However, because we cannot create images for every single library out there, you will end up having to build your own image with the quarkus one as the base.

cescoffier avatar Jun 27 '22 06:06 cescoffier

Hi Clement, do you have any approximately ETA for this feature?

alexeysharandin avatar Jun 27 '22 10:06 alexeysharandin

I would love to have the new approach implemented this summer (so between now and the beginning of September). I have my first experiment planned for Friday.

cescoffier avatar Jun 27 '22 15:06 cescoffier

Hi Clement, can help with implementation if needed. Like a person who have iterest to do this :) BTW: In any case - looks like need to move from RHEL to some free linux like Ubuntu in open-source level for this feature

alexeysharandin avatar Jun 27 '22 21:06 alexeysharandin

I don't think any additional library should be added globally. Similarly with AWT dependencies, you add those in your own image when needed...

Karm avatar Oct 13 '22 08:10 Karm

usecase for https://github.com/quarkusio/quarkus/issues/34186

maxandersen avatar May 08 '24 09:05 maxandersen