Mutable-jar and container build with jib

98 views
Skip to first unread message

swidersk...@gmail.com

unread,
Mar 4, 2021, 12:04:21 PM3/4/21
to Quarkus Development mailing list
Hello,

Is there any known issue with using container build with package.type set to mutable-jar?

I am using jib extension but after the image is built it fails at start time with following exception

Exception in thread "main" java.nio.file.NoSuchFileException: /work/lib/deployment/deployment-class-path.dat
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.Files.newByteChannel(Files.java:370)
at java.base/java.nio.file.Files.newByteChannel(Files.java:421)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:155)
at io.quarkus.bootstrap.runner.DevModeMediator.doStart(DevModeMediator.java:39)
at io.quarkus.bootstrap.runner.DevModeMediator.doDevMode(DevModeMediator.java:29)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:35)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:25)

I can see this file to be in local target folder but it is not moved to container… The guide around remote dev mode didn’t mention any limitation in this regard so not sure it somehow stopped working or it was not intended to work using container image extensions.

P.S. Using 1.12.0 version

Maciej

Georgios Andrianakis

unread,
Mar 4, 2021, 12:09:42 PM3/4/21
to swidersk...@gmail.com, Quarkus Development mailing list
This isn't something that is currently supported by Jib, but we should probably support it.
Can you open an issue please?

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/BF9FAD27-B736-4D86-B5AA-188EEECC5DDB%40gmail.com.

swidersk...@gmail.com

unread,
Mar 4, 2021, 12:11:03 PM3/4/21
to Georgios Andrianakis, Quarkus Development mailing list
Thanks Georgios for quick reply, will file an issue. 

Is this supported by any other container image extension?

Maciej

Georgios Andrianakis

unread,
Mar 4, 2021, 12:12:36 PM3/4/21
to swidersk...@gmail.com, Quarkus Development mailing list
I don't think it is. But it should be easy to alter the fast-jar Dockerfile and build a container image with it.

swidersk...@gmail.com

unread,
Mar 4, 2021, 12:16:03 PM3/4/21
to Georgios Andrianakis, Quarkus Development mailing list

Georgios Andrianakis

unread,
Mar 4, 2021, 12:17:20 PM3/4/21
to swidersk...@gmail.com, Quarkus Development mailing list
👍
Reply all
Reply to author
Forward
0 new messages