While trying to create a docker image for spring boot app using the mvn compile jib:dockerBuild getting below error
enter image description here
I am using GoogleJib to create a docker image for my springboot application. but It is getting stuck at 80 percent. Since I do not see any logs except the below Screenshot. Options I have tried
PS: The image is attached but need to click on link
I was also facing the same but it was resolved to me by following the below steps
changed the jib-maven-plugin to an older version in pom.xml. e.g 3.3.2
Now This gave me the correct error telling my java version in pom is 21 but the base docker image it is trying to create is using 17 I) Try changing the version of Java to 17 in Pom (or) ii) Try adding the below in the configuration of plugin (I followed this)
<from>
<image>eclipse-temurin:21-jre</image>
</from>
FYI my issue was with java version so it got resolved for by following above steps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With