-
Notifications
You must be signed in to change notification settings - Fork 441
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
windows installer #12
Comments
That actually looks nice. I am looking for a way to enable windows services soon. Ideally we'd get something for linux as well. If you have a chance to try this guy out, I'm more than open to pull requests. We're still in explore + abstract stage on this project, to some extent. Trying to get all the right hooks for the underlying natives right before expanding the simplicity of packaging. |
Thats cool. I'm interested in this from a PaaS pov mainly but I may look at doing this if I get some time. From a PasS perspective (or at least mine as an employee of CloudBees) it would be great if every http server could support the same basic args and be called from the same script. I know there are various ways to do this, like herokus buildpacks, but it would be cool to be able to do it from sbt directly. I havent looked much as this plugins architecture, but I assume the user could configure the app to be a generic web server (which would work for play/ embedded jetty/spray). |
Yep. we're actually investigating that for play/akka. Right now I'm mostly focused on how to let users configure custom packages for each target packaging platform. Now working towards genericizing that, so if you have a "simple" application type (like a web server), the plugin can autogenerate the packaging for you, given a few minimal inputs. |
I already used http://yajsw.sourceforge.net/ for a Play application but https://github.com/kohsuke/winsw looks very interesting. Any progress on this? |
We didn't have time to come across this :(, but would be happy to help you with a pull request :) |
Thanks for feedback. I will see if I can find some times to look at it. Keep good work :) |
I manually tested WIX with winsw (https://github.com/kohsuke/winsw) and it works like a charm. Note :
Files that work for me so far :
What works :
Todo for initial test integration :
What do you think about this approach? Let me know if i'm out of scope. |
At first glance this looks awesome. You describe already the task/settings we need to add for the windows
I have the feeling that most of the work has to be done in the last point. If you need help providing a pull request feel free to ask any question. |
that's actually super awesome. We should probably find some way to host the EXE we've tested with, but allow others to override. As such, we should probably download the EXE in our build and publish as a classified artifact (or something else) that can be resolved in windows builds. We could also (I"d be ok with this) bundle the exe into our JAR file. What is the license for Kudos for figuring out the wix stuff. Super awesome to hear it works. You may have just kickstarted our next major release :) |
License issue was the first motivation for @kohsuke. He wrote
|
Awesome! MIT works well, we'll just have to list that we use it. |
It's far from being ready for a pull request I have some questions that you may discover in the code itself
Here is my first attempt. It's basically working but still not generic (tested with Play 2.3.x). I added comments in the code to tell you where I have difficulties. Feel free to give me any advice. Simple question : I'm currently using So far it's only working in the |
For testing, take a look at the |
It's far from being ready for a pull request I have some questions that you may discover in the code itself
It's far from being ready for a pull request I have some questions that you may discover in the code itself
For what it's worth, you might consider using procrun from the commons-daemon project as an alternative to winsw. This is what tomcat uses. In fact, I'm not sure why Jenkins didn't use procrun since it's almost the same thing with a similar permissive license (apache). Advantages include having the binary up on the maven repo, though it's not listed in a configuration in the pom anywhere so you have to manually pull it. Another advantage would be that it's java specific so you can, for example, supply a stop() method that is called when the service is stopped. |
Thanks for the suggestion! At the first look procrun looks pretty solid regarding features and maturity. Do you have any time to start a initial pull request? If you need any help setting things up or a general idea how to implement, I'm more than happy to help. |
It would be great if somebody is willed to address this issue. Maybe I could ask my employer to raise some bucks for it. |
There is still an open pull request. Maybe you could start there. |
actually I have zero experience with the codebase I doubt that I can't pull that off :( |
If you take a look at #329 the changes are rather simple
The code alright is in a acceptable shape. It only needs some testing, maybe configuration tweaks and documentation. |
easier as said |
Just fyi Jenkins uses https://github.com/kohsuke/winsw for installing itself, and its slaves as windows a windows service.
Not sure what else there is out there.
The text was updated successfully, but these errors were encountered: