Skip to content

garthk/node-for-headless-webgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Node with support for headless WebGL

To run headless WebGL tests under Docker with gl, #stackgl's fork of headless-gl, you'll need:

  • node
  • OpenGL drivers
  • A headless back buffer with OpenGL support

This image contains:

  • The latest node 6 LTS, because it's FROM node:6
  • The packages required for gl use under Travis, including xvfb
  • Yelp's dumb-init to handle the PID 1 duties xvfb-run won't

The full process tree will be:

  • dumb-init
    • xvfb-run
      • xvbf
      • node, or whatever else you put in your CMD

I've left out gl itself. If you want it globally installed in your derived image, add these lines to your Dockerfile:

FROM garthk/node-for-headless-webgl
ENV NODE_PATH /usr/local/lib/node_modules
RUN npm install --unsafe-perm --global gl

About

Node with support for headless WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages