Fork me on GitHub
#lumo
<
2019-04-26
>
anmonteiro04:04:43

they can also be defined in a clj file

richiardiandrea06:04:34

Could not make the static build to work unfortunately, it keeps crashing on me, I even compiled on an actually Amazon Ami without success...compilation seems to stop for some compilation error with GCC 7 of Red Hat

grav06:04:58

Great to see thereโ€™s activity around the aws runtime. Iโ€™ll see if I can get time to participate over the weekend!

richiardiandrea07:04:38

I was very very excited to have it working and colleagues liked the idea ๐Ÿ˜ Then we got the seg fault and we are now stuck ...spent my evening trying to make it work to no avail ...opened an issue..time to give up and sleep now ๐Ÿ˜ด๐Ÿ˜ด๐Ÿ˜

grav11:04:41

Could it be that the node_modules that you are trying to use are not compiled on the Amazon AMI?

richiardiandrea18:04:05

Does the SDK need compilation as well? If so, I didn't know that ๐Ÿ˜ƒ

grav10:04:24

Iโ€™m not sure - I have used eg Sharp, which requires compilation on an Amazon AMI before it works in Lambda.

grav10:04:07

I actually thought that the aws sdk might already be available on Lambdas, but my tests show that, when using the current lumo runtime and no node_modules, while (js/require "fs") works in a lambda, (js/require "aws-sdk") does not

grav10:04:13

Regarding compilation, I guess it comes down to whether the node module is just pure js, or if has a native addon. Iโ€™m not sure how it is with the aws sdk.

grav10:04:42

If it /is/ the case with aws-sdk it might make perfect sense to do a layer that includes it.

richiardiandrea16:04:24

Agree yes, and yes you need to add it explicitly. I will explore more

richiardiandrea16:04:34

From what I can understand from the GitHub repo, it seems just a bunch of Js but I haven't explored each and every service

richiardiandrea16:04:03

An alternative setup would be to keep it dynamic and copy the libs over maybe? Kind of like sandboxing it

grav14:04:50

I did manage to make a static build (I believe) via orig lumo-master on Mac, and subsequently use it together with the aws-sdk succesfully. Iโ€™m now trying to build lumo for AWS AMI via Docker, and if that ever succeeds, Iโ€™ll try running it in an AWS AMI docker container with an aws-sdk consuming script.

richiardiandrea15:04:12

Oh nice, wonder why Mac succeeded. I found a Muslim container and I was going to try that today...maybe I am going to wait for your results first

grav15:04:54

Well, my experiment ended with the error you saw on Github ๐Ÿ˜•

grav15:04:58

And itโ€™s extremely slow, running the compilation on a docker instance on a mac. A linux machine running Docker, or an EC2 instance would probably be a better env for iterating

richiardiandrea16:04:27

I know right? that's why is good we don't duplicate work ๐Ÿ˜„

richiardiandrea00:05:21

I created a musl docker image in arichiardi/master today but I might be missing something, I could not compile still. My linking/headers/compile fu si rusty lumo

theeternalpulse20:04:46

does anyone have a repo that has a good standalone setup with lumo scripts?

theeternalpulse20:04:09

as in, a repo of scripts and any plumbing to use it on a personal machine