-
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
ash support documentation #652
Conversation
Thanks, looks good. The documentation states that the is a need to override the bashScriptTemplateLocation := {
// generate the file, so it can be found
val script = (target in Universal) / "tmp" / "ash-start-script"
val content = .. // getResource from internal
// fill in the contents from the interally shipped jar
IO.write(script, content)
// return this as template location
script
} Simplifies usage and documentation :) |
Makes sense. Let me look at it. That will probably require an ash-template file but that shouldn't be a big deal. I'll put it in this PR. Sent from my iPhone
|
I've created an overridable ash-template file so it works more "out of the box". That'll be better. I am getting a Travis failure but the CI system is a little flakey today and I can't click into the details to know what's failing. |
I'm also couldn't get access to details.. :( |
@kardapoltsev yeah, this is for a few days now. @jsuereth I fear this is something the repo-admin has to reconfigure? |
override def projectSettings = Seq( | ||
bashScriptTemplateLocation := (sourceDirectory.value / "templates" / ashTemplate), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fear this won't be enough. You have to create the ash template. Something like
bashScriptTemplateLocation := {
// generate the file, so it can be found
val script = (target in Universal) / "tmp" / "ash-start-script"
val content = .. // getResource from internal
// fill in the contents from the interally shipped jar
IO.write(script, content)
// return this as template location
script
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid I'm confused on this point. I've got something like this in makeUniversalAshScript() in file AshScriptPlugin.scala. I've built it locally and it seems to work great for a project that consumes this feature. Looks like this:
val template = resolveTemplate(defaultTemplateLocation)
val scriptBits = JavaAppAshScript.generateScript(defines, template)
val script = tmpDir / "tmp" / "bin" / name // fine since this is an ash-specific archetype
IO.write(script, scriptBits)
script.setExecutable(true)
Some(script)
On a separate note, I'm not sure why one of the tests is failing. I'll check but I don't think this is anything I modified. Perhaps I pulled something I shouldn't?
Travis CI flakiness :( Tests run now. I've tested this on my machine as well and everything works smoothly. Great job :) |
@gzoller I forgot to ask. You mentioned that you use busybox within the docker build, right? Is there a busybox-java image that we could use as a default for the |
Kinda... It's not provided by busybox but a developer who goes by errordeveloper I think. Sent from my iPhone
|
Here's one image you might be able to try: https://hub.docker.com/r/develar/java/ Alpine Linux seems to have quite a mini-community (I only came across it this month). |
Exactly. That's kinda why I didn't wire in a default at this point. Wasn't really sure who'd stick until some time had passed. |
Okay, that makes sense. Thanks @fiadliel for the research. |
No description provided.