Running distribution inside docker container?
I built distribution and currently trying to run inside a Docker container but getting such error. Anyone knows what might be the problem?
35 Replies
If I run disribution script, everything is working fine
just sounds like your package or class name is incorrect
you could open the JAR in an archive manager (or rename it to .zip) and check
but I'm imagining it has something to do with your distributions.forEach which sets all distributions to the same JAR name
I haven't actually seen that builder before, though, so just a hunch
Isn't classpath ok?
why are you setting that if you have a
-all
jar?Ah, copied it from jar task, seems like .jar in not needed here
let me delete it
Deleted but the issue still remains
did you check what was actually in the jar?
there were two folders,
bin
and lib
, I was running sh script inside bin folderWhat? That makes no sense
How did those end up in your jar?
It was not jar, I was not using fatJar, I ran
./gradlew installDist
to create distributions
Just I copy pasted the name from fatJar task, thats why it was named that way, my badIsn't there another folder in build/install?
no
there should be
at least according to the docs for the distribution plugin
You can rungradle installDist
to assemble the uncompressed distribution intolayout.buildDirectory.dir("install/${project.name}")
Let me clean all and rerun it
Here is the directory tree
right
And gradle build file