question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use Jib with Quarkus

See original GitHub issue

I tried to use Jib Maven with Quarkus and it turned out not working at all.

Basically, Jib can’t find the Main class and can’t copy the dependency libs because all of them are provided scope.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

13reactions
chanseokohcommented, Jul 2, 2020

@gunnarmorling @geoand @maxandersen @cmoulliard @OneCricketeer @sureshg @dgageot @saturnism @daggerok @sirAlexander @ScheerMT @dennisjagut @Tanmayshetty @krishnaarava @Tombar @jycr @DaHoC @yazidaqel @sdavids @xmlking @jabrena @mehmandarov @YacheLee

Although Quarkus added native Jib image building on their side a while ago, we still wanted to allow Jib build plugin users to containerize Quarkus apps. However, as mentioned above, we thought adding specialized code for every app framework and non-conventional feature requests into Jib plugins is not sustainable or maintainable in the long run. For this reason, we implemented the Jib extension framework which gives the user the power to tweak and extend Jib plugin workings.

With the new extension framework, now we enabled Quarkus support in Jib plugins through the release of Jib Quarkus Extensions (Maven / Gradle). Currently, the extensions only work for the default packaging mode (e.g., no support for uber-jar package type), but we should be able to add more support in the extensions in the future. Another point of supporting Quarkus through an extension is to attract more contributions from interested parties and the community, so we are more than welcome to have your contributions.

Would be good to be able to also build the docker images for the native-image part of quarkus. I know this is maybe not in the scope of Jib (java application only), but I think this could be good!

@davinkevin ultimately, our Jib Quarkus Extensions can be expanded to cover the native-image package type. Related, we will soon write another Jib extension to support a general native GraalVM (i.e., non-Quarkus) containerization.

Closing the issue.

9reactions
briandealwiscommented, Mar 20, 2019

Or better yet, quarkus could use Jib-Core internally to package their container image!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Container Images - Quarkus
The major benefit of using Jib with Quarkus is that all the dependencies (everything found under target/lib ) are cached in a different...
Read more >
Container Creation Fails with Jib after upgrading to 2.7.0.Final
The whole process works fine when I change the Quarkus version from 2.7.0.Final to 2.6.3.Final. I am using jib to generate the image....
Read more >
Containerizing your Microservice in Quarkus with Jib - Medium
Using Jib removes the complexity of writing docker files. ... This means it will be a minimal image and won't even contain any...
Read more >
Can't push to Gitlab registry | Quarkus - Jib build
Hello everybody, I'm currently developing Quarkus applications and need therefore a CI Pipeline + Container Registry. The deploy token has all ...
Read more >
Building Java containers with Jib - Google Cloud
This tutorial shows how to use Jib to build an optimal Java container and deploy to Cloud Run.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found