mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
133 stars 26 forks source link

Amazon Linux Lambdas advice #45

Closed alexcroox closed 2 years ago

alexcroox commented 2 years ago

The readme mentions "pruning" the module to reduce the size, are there any guidelines on this? I'm unsure what I can and can't remove.

alexcroox commented 2 years ago

I've nearly got this working on AWS lambda, stumbling on the @mapbox/node-pre-gyp dep this library has:

Screenshot 2022-10-12 at 14 41 03

Which comes from here:

Screenshot 2022-10-12 at 14 41 40

image

I'll update if I can figure it out

mmomtchev commented 2 years ago

The readme mentions "pruning" the module to reduce the size, are there any guidelines on this? I'm unsure what I can and can't remove.

The readme says that there is a npm script that can be launched with npm run prune that does the pruning

mmomtchev commented 2 years ago

I've nearly got this working on AWS lambda, stumbling on the @mapbox/node-pre-gyp dep this library has:

Although you can submit this to @mapbox/node-pre-gyp, normally, a npm-packaged project is supposed to have a package.json file