jib icon indicating copy to clipboard operation
jib copied to clipboard

Container entrypoint set to [java, -cp, @/app/jib-classpath-file spend long time

Open jianchengwang opened this issue 3 years ago • 2 comments

hello guys, I use jib-maven-plugin to build my springboot project, it works well, but Container entrypoint set to [java, -cp, @/app/jib-classpath-file will lock and spend a long time, about 10minuter and more. so how to short this time.

jianchengwang avatar May 06 '22 03:05 jianchengwang

Hello @jianchengwan, when forming the entrypoint, Jib generates @/app/jib-classpath-file to allow for the generation of a deterministic classpath regardless of the host you're running your container on. The computation of the classpath (and presumably the time it takes) can vary from app to app, based on the dependencies they are using. Here is more information on the process if you're interested: CHANGELOG and customer container entrypoint section in README. This is a new observation but we can keep this issue open in case we notice anything similar.

mpeddada1 avatar May 09 '22 01:05 mpeddada1

Closing as part of a clean up. Please reopen if this is still relevant.

zhumin8 avatar Aug 09 '22 19:08 zhumin8