-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packing a single executable fat-Jar does not work #264
Comments
Sorry, I'm not completely following your steps to reproduce so taking a guess here. What you're seeing might be due to the way that the There's unfortunately no flag for If you're doing this and you've gotten the JAR file into the container properly, then you should move past the logic you referenced and the buildpack should be able to look for the executable JAR. Having said all that, if you have an executable JAR file that's self-contained you shouldn't need it to be a JAR in the build environment. The buildpack knows how to take the exploded JAR and run that (it is actually a bit faster, cause there's nothing to extract). If I remember correctly, we added the ability to run from the JAR for Quarkus apps, which are packaged up slightly differently. If your app can be |
@dmikusa Thanks for getting back to me. Yes, indeed we have a Quarkus app, however, we see a different behavior when the JAR is exploded in the image. Could be as what you said due to how Quarkus packages, or also due to the modified classpath that might cause conflicts with whatever additional classpath the environment has. Therefore, it would be great if we can simply have the exact artifact in the image and not have it manipulated in any way. I have fixed the issue in a PR #265, so if you could please have a look when you have some time, it would be greatly appreciated. |
Hi team,
We have a runnable fat-jar and when I tried to configure the buildpack to simply pack it and run it, I keep running into the buildpack detecting it as an exploded Jar. In other words, I could not configure it to reach
executable-jar/executable/executable_jar.go
Line 56 in 50bd25d
if
and everything worked fine.Expected Behavior
Allow packing a single executable fat-Jar.
Current Behavior
Only performs to pack an exploded Jar.
Possible Solution
I can see a few possibilities to fix it:
Steps to Reproduce
Looking at the generated image layer, the contents of the layer seem as expected:
Motivations
I cannot use the buildpack to package my jar file and for me renders the buildpack unusable, however, as I have read in the tests, this is one of the desired usecases of using this buildpack. It would be great if we can either fix the issue or clarify the detailed conditions in which it can be used in such a scenario.
The text was updated successfully, but these errors were encountered: