These are chat archives for jruby-gradle/jruby-gradle-plugin

7th
Apr 2016
Christian Meier
@mkristian
Apr 07 2016 13:46
@rtacconi I created an AWS account and played with those lambdas - I did not even get the example from the AWS docu working without modifying it :( - the moment I put more then one jar into the lib directory of the zip, the upload fails without saying why - just an empty red popup :(
the original example of yours will never ever work as it does not setup the stdlib correctly (adding it to the LOAD_PATH is not enough) and without stdlib there is no loading of gems.
for me I have to give up here, as things just feels buggy to the point that I can not use it
R. Tyler Croy
@rtyler
Apr 07 2016 14:48
lambdas? i must have missed something
Charles Oliver Nutter
@headius
Apr 07 2016 15:11
Someone mentioned me...
Oh nice...did not realize folks were poking at lambda JRuby
R. Tyler Croy
@rtyler
Apr 07 2016 15:14
heh
all kinds of wacky things go on in here @headius
Christian Meier
@mkristian
Apr 07 2016 15:16
once the java bits on those AWS lambdas can be used by users like me, the jruby should just work IMO
R. Tyler Croy
@rtyler
Apr 07 2016 15:17
"users like me" what's that mean?
is it in some kind of preview mode right now?
Christian Meier
@mkristian
Apr 07 2016 16:14
@rtyler I think the java part is the newest but some google search result go back a year or more. something I just do wrong and get an error without any description. so it could be something trivial which I do not see, as it is too trivial. or so
Riccardo Tacconi
@rtacconi
Apr 07 2016 16:42
@mkristian best thing is to upload your zip to s3, then you copy the URI of the S3 file and in AWS lambda you click upload from S3. The file is quite large and it is not advise to you the direct HTTP upload in the lambda console. It works for me but I have to zip manually because... well you already know. I could share my S3 zip so you can try to run mine. May be during the weekend I will manage to fix the gradle build (the zip part)
Christian Meier
@mkristian
Apr 07 2016 16:43
@rtacconi just playing with the S3 but run into some error around the wrong endpoint. yes, would be nice to see your manually packed zip
Christian Meier
@mkristian
Apr 07 2016 17:05
ok this S3 bucket worked after deleting my years old stale bucket :P and using a new bucket
R. Tyler Croy
@rtyler
Apr 07 2016 17:07
hah
Christian Meier
@mkristian
Apr 07 2016 17:20
cool - thanks
Riccardo Tacconi
@rtacconi
Apr 07 2016 17:20
@mkristian so after you spring cleaning your lambda is working? :-)
Christian Meier
@mkristian
Apr 07 2016 17:22
yes, I see a "hello world" coming from a ruby file. now I need to see if the gems are working as well
Riccardo Tacconi
@rtacconi
Apr 07 2016 17:23
I used more than 256MB, 59 secs of timeout, no vpc, with lambda_basic_execution as role. You need a role. If you do not have it just try Hello World in Python it will create some basic 'stuff', including the role. Handler is AWSLambdaJRuby::handler
if you get an empty red flash box you have an issue with VPC or role
Christian Meier
@mkristian
Apr 07 2016 17:24
that is good to know.
Christian Meier
@mkristian
Apr 07 2016 18:34
@rtacconi I updated the better-jruby-handling branch with a working example including extra gems. timeout needs to be at least 60 sec for the first execution of the lambda.
config is about the same as you wrote me but pick 512MB heap