-
-
Notifications
You must be signed in to change notification settings - Fork 925
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 with -e does not work in Alpine linux container? #4044
Comments
When installing jruby manually, everything works just fine. Consider this Dockerfile:
Executing |
I see nothing in your report that indicates why Alpine fails to build a working JRuby. I also have no idea to help :-) |
The problem is in launch script, not JRuby itself, it doesn’t handle arguments with spaces; see #1860 (comment). I missed that there’s this What is the state of mruby-based launcher, can we use it? EDIT: I have an idea how to handle arguments with spaces even in POSIX-shell script… :) |
I’ve fixed Alpine’s jruby launch script to handle whitespaces in arguments passed into JRuby, i.a. @cyxou Update to jruby-9.1.2.0-r1, it’ll be in the repository in few minutes. BTW jruby has been moved from testing into the community repository, so replace |
@jirutka which shell is Alpine using ? |
@mkristian Busybox’s ash (POSIX compliant shell with some common extensions) |
@mkristian Please read #1860 (comment) for more information, it explains why I rewrote the launch script. |
@jirutka thanks did not see that big discussion |
Environment
JRuby version 9.1.2.0
Having this container, described in the following Dockerfile:
After starting container run in it's shell:
jruby -e 'puts "Aloha!"'
Expected Behavior
The shell should write "Aloha".
Actual Behavior
Shell shows empty line.
The text was updated successfully, but these errors were encountered: