lambda-perf icon indicating copy to clipboard operation
lambda-perf copied to clipboard

Getting Started with Development Guide

Open rk29 opened this issue 3 years ago • 2 comments

This looks like a really interesting project, but when I cloned it, it wasn’t really clear what I needed to do to build and deploy it so that I could try to add a new target.

It would be really handy to have a “Getting Started” guide for developers that describes the tools needed and the steps to build and deploy.

Thanks!

rk29 avatar Jan 31 '23 17:01 rk29

Haven't looked at this in a while, but took a look today.

So far, it looks like tools needed are: npm, nodejs, zip, docker I haven't tried deploying yet, but that's probably going to need aws-sam-cli and python.

To build the runtimes, I had to comment out the upload code from s3-uploader/app.js, then run it with these commands in the s3-uploader directory:

$ npm install
$ node app.js

Most of the runtimes build inside a freshly created docker instance with the build tools installed via the Dockerfiles for those. The exception is the nodejs runtimes, which just use the zip command to zip up the source folder.

I suspect that my next step is to modify s3-uploader/app.js to upload to my own S3 bucket, and build the rest of the pieces. It seems like each one has to be build separately.

rk29 avatar Apr 19 '23 00:04 rk29

My goal is to be able to contribute more runtimes, but there's just a lot of discovery to do in order to do that.

rk29 avatar Apr 19 '23 00:04 rk29