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

jruby should not depend on bash #3334

Open
darrin-wortlehock opened this issue Sep 16, 2015 · 3 comments
Open

jruby should not depend on bash #3334

darrin-wortlehock opened this issue Sep 16, 2015 · 3 comments

Comments

@darrin-wortlehock
Copy link

Building a minimal docker container for running jruby apps requires the bash shell to be available. If a system uses a lighter weight /bin/sh implementation (like ash in the case of alpine linux), then jruby should use that.

@rtyler
Copy link

rtyler commented Sep 21, 2015

For my own information, when you say depends on, what do you mean? There's a bash-based JRuby launcher, but it's also possible to just run java -cp path/to/jruby.jar org.jruby.Main foo.rb as well.

@mkristian
Copy link
Member

and there is bin/jruby.sh launcher as well which is not bash.

@headius
Copy link
Member

headius commented Sep 25, 2015

@darrin-wortlehock As someone else mentioned, there's a kinda-sorta sh script in there too. My recommendation, however, would be to have your docker container install the jruby-launcher gem. jruby-launcher is a native executable that has all the features of the bash script but can be used in shebang lines, etc. It is the executable you use when, for example, you install via rvm.

We'd love to have a plain sh script that has all the features of the bash script, but none of us are sh experts and nobody else has managed to port everything over.

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