Skip to content

AWS Lambda arm64 Support #2938

@jlarmstrongiv

Description

@jlarmstrongiv

What are you trying to achieve?

AWS has recently released AWS Graviton2 processor 🎉 up to 19% better performance at 20% lower cost

See also:

Essentially, if I have a docker container starting with:

FROM public.ecr.aws/lambda/nodejs:14-arm64

And then install sharp with npm init -y && npm install sharp --build-from-source, we have a crash!

#29 33.73 > [email protected] install /production-node-modules/node_modules/sharp
#29 33.73 > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
#29 33.73
#29 36.10 sharp: Installation error: Use with glibc 2.26 requires manual installation of libvips >= 8.11.3
#29 36.11 sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
#29 38.11 npm ERR! code ELIFECYCLE
#29 38.11 npm ERR! errno 1
#29 38.19 npm ERR! [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)`
#29 38.19 npm ERR! Exit status 1
#29 38.20 npm ERR!
#29 38.20 npm ERR! Failed at the [email protected] install script.
#29 38.20 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#29 38.26
#29 38.26 npm ERR! A complete log of this run can be found in:
#29 38.26 npm ERR!     /tmp/.npm/_logs/2021-10-20T09_10_33_547Z-debug.log

Have you searched for similar feature requests?

Yes. All are closed.

What would you expect the API to look like?

Same as regular installation.

What alternatives have you considered?

Building from scratch. Unsolved. I would like to figure out a workaround to install libvips on AWS Linux 2 (prior art).

Is there a sample image that helps explain?

N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions