google / node-gles

Apache License 2.0
323 stars 31 forks source link

Running in Docker #74

Closed liamcarter111 closed 3 years ago

liamcarter111 commented 3 years ago

Hi, any idea how to get this running inside a docker container? Currently integrated as part of WebGL unit testing which works perfectly. Except, fails on the CI/CD side since this is a docker environment. Makes sense since there are no GPU drivers. But even emulation would be acceptable since performance is a non-issue. This is all under Ubuntu. Any help is much appreciated.

liamcarter111 commented 3 years ago

Solved by installing xvfb (apt) and xvfb-maybe (npm). Then as part of package.json "test": "xvfb-maybe jest"