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
node6 LTS, because it'sFROM node:6 - The packages required for gl use under Travis, including
xvfb - Yelp's
dumb-initto handle the PID 1 dutiesxvfb-runwon't
The full process tree will be:
dumb-initxvfb-runxvbfnode, or whatever else you put in yourCMD
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