Skip to content

Commit

Permalink
Merge pull request #161 from Sparticuz/chromium/117
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Sep 19, 2023
2 parents 93954a5 + a6e6e8d commit 506d4c2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions _/ansible/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ ansible_connection=local
ansible_python_interpreter=python
image=ami-08d090f841c8435e9
region=us-east-1
instance_size=c6i.12xlarge
instance_size=c7i.12xlarge

[aws]

[aws:vars]
ansible_connection=ssh
ansible_python_interpreter=auto_silent
ansible_ssh_private_key_file=ansible.pem
chromium_revision=1160321
chromium_revision=1181205
2 changes: 1 addition & 1 deletion _/ansible/plays/chromium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
wait_for:
host: "{{ ec2.instances[0].public_ip_address }}"
port: 22
timeout: 240
timeout: 320
state: started

- name: AWS
Expand Down
Binary file modified bin/chromium.br
Binary file not shown.
Binary file modified bin/swiftshader.tar.br
Binary file not shown.

0 comments on commit 506d4c2

Please sign in to comment.