Closed guizmaii closed 3 years ago
I also have a same error, does anyone knows the solution? I can see this output, but don't know how docker image run with this jre.
Running: jlink --output <root>/target/jlink/output --add-modules java.logging,java.management,java.naming,java.compiler,java.base,java.desktop,java.transaction.xa,java.sql,java.security.sasl,java.datatransfer,java.security.jgss,java.xml
does anyone knows the solution?
My problem was that I was packaging the app on my Mac but running the Jlink'ed app in a Linux Docker. The packaged JRE was a Mac one which doesn't work on Linux :)
ah, Thanks a lot! I could build / run my system on Linux.
I'm configuring my app to produce a zip containing my "Jlinked" app and to produce a Docker image containing the same "Jlinked" app:
When I run
sbt universal:packageBin
to produce the zip. It works fine. If I unzip the file and launch the producedbin/api
script my app works as expected.But when I run
sbt Docker / publishLocal
and then try to run the produced Docker image:docker run ghcr.io/api:0.0.1
I have the following error:which is strange because the script is the same and in the script there's this line:
Here's the full produced script: