sambaiz / puppeteer-lambda-starter-kit

Starter Kit for running Headless-Chrome by Puppeteer on AWS Lambda.
MIT License
580 stars 82 forks source link

Update script to support Web GL #8

Open ghost opened 6 years ago

ghost commented 6 years ago

In this post I provided a way to support WebGL in Chromium for lambda: https://bugs.chromium.org/p/chromium/issues/detail?id=617551

Please add me to a project - I will update the script:

  1. Build osmesa shared lib: libOSMesa32.so.8.0.0
  2. Create symbolic link: libosmesa.so -> libOSMesa32.so.8.0.0
  3. Package libosmesa.so and libOSMesa32.so together with headless_shell
Kikobeats commented 6 years ago

Can you make a PR? 🙏

AndrewGrachov commented 6 years ago

Yeah, I'm also interested

ghost commented 6 years ago

Actually the script does not change. You use it to package headless_shell. Then you need to follow these instructions to build libOSMesa: https://www.mesa3d.org/install.html Then do the following:

  1. Copy libOSMesa32.so.8.0.0 (or other version if built it) next to headless_shell
  2. Create symbolic link libosmesa.so -> libOSMesa32.so.8.0.0
  3. Package headless_shell, libosmesa.so and libOSMesa32.so.8.0.0 together
  4. Remove Puppeteer launch option --disable-gpu in code because you do not want to disable and use libosmesa.so lib to run GPU on Lambda :)
radzionc commented 5 years ago

@Mykolas-Molis, can you share libosmesa.so file, since it turned out to be not so easy to build.

MaksimMarkevich commented 5 years ago

@Mykolas-Molis +++ to RodionChachura post

mykolasmolis commented 5 years ago

I forked the project and added library here: https://github.com/Mykolas-Zenitech/puppeteer-lambda-starter-kit/blob/master/chrome/libosmesa.so.tar.gz