tobiipro / support-firecloud

Software and configuration that support TobiiPro's Cloud Services development.
Apache License 2.0
4 stars 1 forks source link

make target to compile native npm packages for aws lambda #34

Open andreineculau opened 6 years ago

andreineculau commented 6 years ago

goal: have make node_modules_aws create a node_modules_aws with npm dependencies but with native code compiled for the aws lambda architecture. This way, a repository/folder could switch out the node_modules folder for the contents of node_modules_aws in its make dist step, and deliver a distribution artifact that can run on aws lambda.

how: use https://github.com/iopipe/awslambda-npm-install as inspiration

steps:

cc @IanSavchenko keyword: heatmaps 👻

andreineculau commented 5 years ago

docker might not be necessary. use aws codebuild instead - ref https://medium.com/@haydnjmorris/aws-lambda-node-modules-no-docker-required-76443a0f6c4e