Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Chromium for arm64 #11

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Chromium for arm64 #11

wants to merge 1 commit into from

Conversation

Sparticuz
Copy link
Owner

@Sparticuz Sparticuz commented Jun 15, 2022

This PR is for adding arm64 support.

Currently, we seem unable to move forward. Lambda currently runs on Amazon Linux 2, which supports glibc 2.26, but Chromium seems to require glibc 2.29.

Failed to launch the browser process!
/tmp/chromium: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/chromium)
/tmp/chromium: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/chromium)


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

Amazon Linux 2022 supports the higher glibc, however it's also not working when running on Lambda (because Lambda runs on AL2).

Failed to launch the browser process!
/tmp/chromium: relocation error: /tmp/aws/lib/libc.so.6: symbol _dl_exception_create, version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

I'm putting this PR up to see if anyone knows what we can do to move forward.

@Sparticuz
Copy link
Owner Author

Note: I've heard native compilation could fix this, but there is no documentation for native compiling chromium on arm.

@yakirza17
Copy link

@Sparticuz Thanks for your great work!

What about using base docker not from AWS?
Maybe create docker from fedora, and then install chromium?
Something like that:
Dockerfile.txt

@Sparticuz
Copy link
Owner Author

@Sparticuz Thanks for your great work!

What about using base docker not from AWS?
Maybe create docker from fedora, and then install chromium?
Something like that:
Dockerfile.txt

If you want to do it this way, you wouldn't even need chrome-aws-lambda, just also install chromium on your dockerfile.

@Sparticuz
Copy link
Owner Author

I opened aws/aws-lambda-base-images#59 to track AL2022 support in Lambda

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQUEST] ARM Support for Lambda on ARM-based AWS Graviton2 processors
2 participants