Open henryiii opened 4 years ago
The current GitLab CI job and workaround here:
Because of security reasons it is not recommend to run docker or svgexport /pupeteer as root. If you switch to a different user for docker it will work.
Can you do that in CI? You don't have control over how it sets up the docker run, AFAIK.
This currently fails to work in docker with:
If the line in render.js
var browser = await puppeteer.launch();
is replaced withvar browser = await puppeteer.launch({args: ['--no-sandbox']});
, then it works. Could this either detect it is running as root (such as in a docker image) or a way to pass args (via environment variables) be added? This is breaking a gitbook GitLab CI using the node:10 image.