Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any browsers build for AWS Lambda? #626

Closed
und3fined opened this issue Jan 24, 2020 · 6 comments
Closed

Any browsers build for AWS Lambda? #626

und3fined opened this issue Jan 24, 2020 · 6 comments

Comments

@und3fined
Copy link

Hi MS,

Team can opensource scirpt build brower for lambda or a version for lambda?

@XPilot
Copy link

XPilot commented Jan 24, 2020

It would be nice to have browser binaries that could be deployed for AWS.

The chromium browser binary can be found here: https://github.com/alixaxel/chrome-aws-lambda which allows the usage of puppeteer, could not find any reference for Firefox, Edge or Safari.

@und3fined
Copy link
Author

@XPilot currently, i'm use a fork of puppeteer and our chrome build for lambda
I having some issues with launching chrome on lambda, i want to experiment with firefox and webkit

@aslushnikov
Copy link
Collaborator

Team can opensource scirpt build brower for lambda or a version for lambda?

@und3fined We don't have it!

However, all our infrastructure for browser building lives under //browser_patches - so should be doable externally for both firefox and webkit. (cc'ing @alixaxel in case this is something they're interested in)

@alixaxel
Copy link

@XPilot I did attempt to get Firefox headless working for it a while ago, but back then it required xvfb.

I might try again soon if something changed. As for WebKit, I will also have a look.

@aslushnikov
Copy link
Collaborator

@alixaxel note: we also have webkit-wpe builds (e.g. minibrowser-wpe r1120) that don't require xvfb

@austinkelleher
Copy link

I'm actively working on https://github.com/austinkelleher/playwright-aws-lambda.

I was able to get this working on Lambda with browser.defaultContext() (which has been removed in v0.11.0). Current hack is to use browser._defaultContext. Calling newPage with a new context fails with Error: Protocol error (Target.createTarget): Target closed.. For what it's worth, I'm only using Chrome 80.0.3987.0.

Any thoughts @aslushnikov? Really great work on Playwright so far! Very exciting.

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

No branches or pull requests

5 participants