muralikg / puppetcam

Export puppeteer tab as webm video
MIT License
322 stars 63 forks source link

How to run in headless mode? #10

Closed BlackHole1 closed 5 years ago

BlackHole1 commented 5 years ago

I want to put it in the docker, but in headless mode, it won't work. Is there any good way?

muralikg commented 5 years ago

There are docker images with xvfb running inside them which should help you automate the process. Though I have not tested with those images, it should be similar to running it on ubuntu as I had tested.

The approach shown in the example will not run in headless mode, hence the use of xvfb.

BlackHole1 commented 5 years ago

This is great, thank you very much.