Skip to content
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

Making an Archive Fully Executable #174

Open
tamalnath opened this issue Nov 28, 2023 · 2 comments
Open

Making an Archive Fully Executable #174

tamalnath opened this issue Nov 28, 2023 · 2 comments

Comments

@tamalnath
Copy link

Spring Boot provides support for fully executable archives. An archive is made fully executable by prepending a shell script that knows how to launch the application. On Unix-like platforms, this launch script allows the archive to be run directly like any other executable or to be installed as a service.

Maven and Gradle plugins currently support this:

Need a way to build a fully executable jar using Bazel.

@plaird
Copy link
Contributor

plaird commented Dec 2, 2023

Interesting, I haven't seen this type of deployment before.

@plaird
Copy link
Contributor

plaird commented Dec 2, 2023

This is the script they use, it is 309 lines, which is pretty big:
Spring Boot launcher script

An internal sample service I tried with it, using the maven plugin, failed at startup with InvocationTargetExceptions. I didn't diagnose it further.

I am a bit nervous to jump into this, as it seems like it could be a maintenance/support effort. But it is on the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants