Repository navigation
Build AWS Lambda layers for canvas 2.8.0 - #15
Conversation
|
Thanks @maxpeterson I'll check this out today. |
|
Thanks again for contributing @maxpeterson. It really looks like you've done some work here. To summarize what you've done I see that you've added/modified the following files.
I think we can clean this up a bit but I have a few questions first. What is the purpose of Thanks again for doing all this. Looking forward to your reply. |
|
No problem @jwerre I used
I added the lambda-test/build stuff during the process of figuring out how to build the layers, so it may or may not be useful in the future. If your preference is to keep the repo as simple as possible then happy to remove it. As you said the In summary, I can remove the |
|
@maxpeterson Sounds good. On last thing is I don't want to merge this directly into master since I think it needs to be a new version. I created a new branch |
|
Just to confirm, do you wan't me to remove the |
Yes, please |
|
On second thought why don't you just leave it there and document it in the readme so everyone is clear about what it does. |
dc12a74 to
a653b10
Compare
a653b10 to
85d5c98
Compare
|
@jwerre I have updated this PR. Let me know what you think. One further thing that occurred to me is that the two zip files now seem to be much smaller than before, so they could be combined into into a single zip file that would be around 8.5M |
|
@maxpeterson, I finally got around to merging this. Sorry for letting your work slip through the cracks. It should be up and running now so let me know if you comments or improvements. |
For #14
Update the Dockerfile to build the latest canvas version (2.8.0).
To get the canvas layers to work on lambda I updated the Dockerfile to use the
lambci/lambda:build-nodejsXYZ.ximage and runnpm installwith the--build-from-sourceflag.Other changes included:
lddtree.shto find thesolibrary dependencies (inspired by node-canvas/prebuild/Linux/bundle.sh#L1)docker cpto copy the layer zip files out of the docker image.docker-compose.ymland aMakefileto help setup, test and debug running canvas locally using the lambda image, as well as to simplify the build process.@jwerre some of changes here were the result of my testing / development process (such as using make and docker-compose). Let me know if you would like me to strip them out or make any other changes.