Working jruby complete#1
Working jruby complete#1bglusman wants to merge 1 commit intoc9katayama:masterfrom stride-nyc:jruby-complete
Conversation
|
👍 on this. It would be awesome if this works with https://github.com/jruby-gradle/jruby-gradle-plugin |
|
Yeah, I got frustrated fighting with JRuby, and for some reason even though I got local 'tests' running on my code, the same code that works fine on aws lambda won't actually do anything in the scripting container locally (It runs and logs in the java code, but the scripting container always returns null, and trying to do anything like puts or write to a file inside the container locally has no effect, so it seems like it's doing a no-op executing the scripting container for some reason), and aws keeps timing out and erroring when I try and do anything with any gem, without any error I can trace. So unfortunately I'm looking at moving on and using regular ruby custom compiled for lambda as described here: https://cloudenlightened.wordpress.com/2015/11/29/executing-ruby-code-in-aws-lambda/ but would still be interested in helping here or seeing this as a better option if possible. My java knowledge is almost non-existent though, and the scripting container issue is weird enough I don't know how to investigate better locally or on aws. |
|
@bglusman did you find a better way to run ruby on AWS Lambda? |
|
Better than above link or better than jruby? Neither is amazing I guess but the above linked way was pretty good... Could also look at traveling Ruby? |
Seems messy to include the whole stdlib as files here, preferable to use jruby-complete I think. Tested and working, can clean up if desired, but also working on getting requiring gems to work. Would you like that as a PR also?