Hello,
I would like to request an integration of Puppeteer and Firebase/GCF.
Since running headless Chrome offers some great features for testing, screenshots, etc. I felt it could be a very useful sample for developers trying to leverage the function triggers, Real-time DB and Firestore.
Thanks for the consideration!
This would be great! I really would like to use Puppeteer with Firebase Functions to generate screenshots.
@ebidel Didn't you look into this?
GCF and FF don't have the required dependencies installed on the VMs to run Chromium. The team is actively looking at modernizing the images, but there's no announcements at this time.
Until then, you can definitely run Puppeteer on GAE Flex (Node) using Docker. https://github.com/PaulKinlan/puppeteeraas.com is basically what you're after :)
When I recently needed to take screenshots, I ended up using node-webshot which uses PhantomJS. While quite memory intensive it works fine on Cloud Functions.
Thanks guys, really appreciated. I had not seen Puppeteer as a service when I last looked into this, and had not seen node-webshot before either.
I will look into both of these options but will continue to keep my eyes out for when Firebase Functions has the required dependencies.
For this repository, an example of taking screenshots could be a good idea, maybe using node-webshot for now and Puppeteer when/if that becomes possible. I think it could be a somewhat common use-case.
Thanks all!
If you come up with something that works well on Cloud Functions don't hesitate to contribute and add a sample to this repo :)
Hello friends
@ebidel @puf now that we have new images with Node 8, are those dependencies added to the bunch?
Puppeteer is now part of Firebase cloud functions https://cloud.google.com/blog/products/gcp/introducing-headless-chrome-support-in-cloud-functions-and-app-engine
@ebidel any chance I could get a shout out on your blog post announcing this feature? ; )
Most helpful comment
Thanks all!
If you come up with something that works well on Cloud Functions don't hesitate to contribute and add a sample to this repo :)