Merge pull request #161 from Sparticuz/chromium/117

This commit is contained in:
Kyle McNally 2023-09-19 13:29:08 -04:00 committed by GitHub
commit 506d4c2cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 3 deletions

View File

@ -184,6 +184,24 @@ const browser = await puppeteer.launch({
});
```
## Frequently asked questions
### Can I use ARM or Graviton instances?
Amazon's default Lambda base image is quite old at this point and does not support newer versions of `glibc` that chromium requires. When Amazon Linux 2023 comes to Lambda as the default base image, ARM support should be possible. Ref: https://github.com/Sparticuz/chrome-aws-lambda/pull/11, https://github.com/aws/aws-lambda-base-images/issues/59
### Can I use Google Chrome or Chrome for Testing, what is headless_shell?
`headless_shell` is a purpose built version of `chromium` specific for headless purposes. It does not include the GUI at all and only works via remote debugging connection. Ref: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md, https://source.chromium.org/chromium/chromium/src/+/main:headless/app/headless_shell.cc
### Can I use the "new" Headless mode?
From what I can tell, `headless_shell` does not seem to include support for the "new" headless mode.
### It doesn't work with Webpack!?!
Try marking this package as an external. Ref: https://webpack.js.org/configuration/externals/
## Fonts
The Amazon Linux 2 AWS Lambda runtime is not provisioned with any font faces.

View File

@ -6,7 +6,7 @@ ansible_connection=local
ansible_python_interpreter=python
image=ami-08d090f841c8435e9
region=us-east-1
instance_size=c6i.12xlarge
instance_size=c7i.12xlarge
[aws]
@ -14,4 +14,4 @@ instance_size=c6i.12xlarge
ansible_connection=ssh
ansible_python_interpreter=auto_silent
ansible_ssh_private_key_file=ansible.pem
chromium_revision=1160321
chromium_revision=1181205

View File

@ -71,7 +71,7 @@
wait_for:
host: "{{ ec2.instances[0].public_ip_address }}"
port: 22
timeout: 240
timeout: 320
state: started
- name: AWS

Binary file not shown.

Binary file not shown.