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.

A way to disable IncompatibleBaseImageJavaVersionException

See original GitHub issue

Environment:

  • Jib version: 3.2.1
  • Build tool: Gradle 7.4.1
  • OS: Windows / Linux

Description of the issue:

I have a project where I build a jlinked runtime and that needs fonts to draw text onto images, so it needs a base image with fontconfig. I tried to use debian:stable-slim and debian:stable but they both don’t have fontconfig included. So I thought I use the smallest of the temuring images 8-jre as it has fontconfig included and the Java version is irrelevant for the project as it has its own runtime. But now Jib is yelling at me that it is incompatible.

Expected behavior:

A way to disable this warning as it does not apply here.

Log output:

Your project is using Java 17 but the base image is for Java 8, perhaps you should configure a Java 17-compatible base image using the ‘jib.from.image’ parameter, or set targetCompatibility= 8 or below in your build configuration

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
elefeintcommented, May 13, 2022

Jib will not allow overriding of this option.

0reactions
Vampirecommented, May 13, 2022

Not really, still hoping you add this simple configuration option before I have to make that decision with a heavy heart. But it seems Jib is only intended for very narrow standard cases and not for flexibility. I also had to jump some other hoops before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jib - bytemeta
How does jib implement user work operation. jianchengwang. jianchengwang OPEN ... A way to disable IncompatibleBaseImageJavaVersionException. samira-empire.
Read more >
generic-veth chaining not compatible with BPF host routing - Cilium ...
Should we add a check when chaining with veth CNI and enable BPF host routing in the meantime ... A way to disable...
Read more >
jib - Github Plus
Failing to run `jib-gradle-plugin` with "Unable to find method" ... After a new jib-build-plan is released, remove the custom FileEntry output code in ......
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