Re:Headless Chrome support in Cloud Functions and App Engine
by tnolet on Sunday August 19, 2018 @04:21PM
(#17795974)
Running Headless Chrome / Chromium is a bit of a hassle on AWS Lambda and other FAAS providers. Chrome requires some specific bindings/binaries to work. I think the Chrome guys and girls convinced their Cloud coworkers to provides these in the underlying Linux machines that run the Cloud Functions.
[ Parent
| on HN ]
Re:Headless Chrome support in Cloud Functions and App Engine
by mylesborins on Sunday August 19, 2018 @04:26PM
(#17795992)
exactly this. The base operating system comes with the system libraries necessary to support headless chrome out of the box.
(disclaimer: I work for Google Cloud)
Re:Headless Chrome support in Cloud Functions and App Engine
by clarkevans on Sunday August 19, 2018 @05:02PM
(#17796163)
Any chance of also supporting Firefox?
Re:Headless Chrome support in Cloud Functions and App Engine
by giancarlostoro on Sunday August 19, 2018 @04:36PM
(#17796042)
What's to really stop other providers from doing the same thing though? :)
Re:Headless Chrome support in Cloud Functions and App Engine
by manigandham on Sunday August 19, 2018 @04:44PM
(#17796084)
Nothing. It's about developer convenience, not technical possibility.
Re:Headless Chrome support in Cloud Functions and App Engine
by tener on Sunday August 19, 2018 @04:40PM
(#17796066)
Project priorities, I guess.
Re:Headless Chrome support in Cloud Functions and App Engine
by skunkworker on Sunday August 19, 2018 @05:14PM
(#17796214)
It actually is easier than people think, after chrome added the ability to disable shm (which isn't available on lambda) you can statically compile it into a single binary and run it with chromedriver & capybara easily.
Unfortunately Google Cloud Functions don't natively support golang yet so for my business this is a non-starter.
Re:Headless Chrome support in Cloud Functions and App Engine
by philliphaydon on Monday August 20, 2018 @01:35AM
(#17797915)
I just found this
https://github.com/adieuadieu/serverless-chrome/blob/master/...
Don’t know if it works. Going to try this week.
Re:Headless Chrome support in Cloud Functions and App Engine
by atebyagrue on Monday August 20, 2018 @09:12AM
(#17799604)
Seconded. It works great. I've been using this in a lambda web collection project for the past year. Initial load times for headless chrome can be a bit slow, but iterative uses after it has launched are pretty fast.