diff --git a/README.md b/README.md index f28546a..2b7a735 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/_/ansible/inventory.ini b/_/ansible/inventory.ini index e9d7852..6fded90 100644 --- a/_/ansible/inventory.ini +++ b/_/ansible/inventory.ini @@ -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 diff --git a/_/ansible/plays/chromium.yml b/_/ansible/plays/chromium.yml index 87b979f..6aafe1e 100644 --- a/_/ansible/plays/chromium.yml +++ b/_/ansible/plays/chromium.yml @@ -71,7 +71,7 @@ wait_for: host: "{{ ec2.instances[0].public_ip_address }}" port: 22 - timeout: 240 + timeout: 320 state: started - name: AWS diff --git a/bin/chromium.br b/bin/chromium.br index 494a777..a86c837 100755 Binary files a/bin/chromium.br and b/bin/chromium.br differ diff --git a/bin/swiftshader.tar.br b/bin/swiftshader.tar.br index 9f8398f..576b86b 100644 Binary files a/bin/swiftshader.tar.br and b/bin/swiftshader.tar.br differ