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

Support for Alpine Linux with only sh #773

Closed
khanetor opened this issue Apr 9, 2016 · 7 comments
Closed

Support for Alpine Linux with only sh #773

khanetor opened this issue Apr 9, 2016 · 7 comments

Comments

@khanetor
Copy link

khanetor commented Apr 9, 2016

I was trying to use Alpine Linux base Docker image. However the container from the built image cannot start because the start script has a bash hashbang up top, and Alpine Linux does not come with bash by default. I can easily install bash to Alpine Linux, but I wonder if bash is necessary to run an SBT program or sh is more than enough.

@muuki88
Copy link
Contributor

muuki88 commented Apr 10, 2016

Hi

Thanks for feature request. We already have a ash configuration plugin. I'm not sure if this is enough, but you could try or use it as an example on how to create your own Sh script ( and maybe provide it as a PR :) )

@schmitch
Copy link
Contributor

schmitch commented Apr 21, 2016

Actually I used the AshScriptPlugin and it looked working (Alpine includes ash).

schmitch@SHANGHAI:~/projects/schmitch/hansili$ docker run -ti -p 9092:9092 hansili:SNAPSHOT -Dhttp.port=9092
bin/hansili: line 45: is_cygwin: not found
bin/hansili: line 45: addJava: not found
[info] - application - Creating Pool for datasource 'default'
Oops, cannot start the server.

the failure is due to the database connection, but it actually started correctly. The base image was: java:openjdk-8u77-jre-alpine.

@khanetor
Copy link
Author

Yes. AshscriptPlugin works well :). Thanks

On Apr 21, 2016, 3:19 PM +0700, Schmitt Christiannotifications@github.com, wrote:

Actually I used theAshScriptPluginand it looked working.

schmitch@SHANGHAI:~/projects/schmitch/hansili$ docker run -ti -p 9092:9092 hansili:SNAPSHOT -Dhttp.port=9092 bin/hansili: line 45: is_cygwin: not found bin/hansili: line 45: addJava: not found [info] - application - Creating Pool for datasource 'default' Oops, cannot start the server.

the failure is due to the database connection, but it actually started correctly. The base image was:java:openjdk-8u77-jre-alpine.


You are receiving this because you authored the thread.
Reply to this email directly orview it on GitHub(#773 (comment))

@muuki88 muuki88 closed this as completed Apr 21, 2016
@ogirardot
Copy link

is it me, or does it seem like this plugin is no longer supported ?

@muuki88
Copy link
Contributor

muuki88 commented Nov 21, 2016

What concrete issue do you have? And to which plugin are you referring?

@ogirardot
Copy link

Well the Bash template of the JavaAppPackaging is not (obviously) compatible out of the box with ash of the alpine distribution. And I thought the plugin AshscriptPlugin referred to in this PR did not seem to exist anymore but with further research it seems its only available since the 1.2.0 which is not yet released right ?

@muuki88
Copy link
Contributor

muuki88 commented Nov 22, 2016

The AshScriptPlugin is available since 1.0.4. See the related tags in the initial commit.

In 1.2.x the plugin was moved in another package, but that doesn't have any user impact.

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

No branches or pull requests

4 participants