Skip to content

Conversation

@bglusman
Copy link

@bglusman bglusman commented Feb 8, 2016

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?

@pngdwnld
Copy link

pngdwnld commented Feb 9, 2016

👍 on this. It would be awesome if this works with https://github.com/jruby-gradle/jruby-gradle-plugin

@bglusman
Copy link
Author

bglusman commented Feb 9, 2016

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.

@edmz
Copy link

edmz commented Mar 27, 2018

@bglusman did you find a better way to run ruby on AWS Lambda?

@bglusman
Copy link
Author

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?

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

Successfully merging this pull request may close these issues.

3 participants