Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Running from Docker #69
I have created Docker image base on mode:10-jessie and installed all pre-requisites for Chrome. This should be used to run in Concourse CI.
Now when I run:
(node:3142) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome! [1008/134337.709535:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md at onClose (/node_modules/puppeteer/lib/Launcher.js:339:14) at Interface.helper.addEventListener (/node_modules/puppeteer/lib/Launcher.js:328:50) at Interface.emit (events.js:187:15) at Interface.close (readline.js:379:8) at Socket.onend (readline.js:157:10) at Socket.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1092:12) at process._tickCallback (internal/process/next_tick.js:63:19) (node:3142) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3142) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If I run with unprivileged node user:
su -l node -c "/node_modules/.bin/pa11y-ci --json"
I get this output:
In your pa11y config file you need to have something of the sort:
After that if you run it again it should work. If it doesn't then check if you do have chrome installed in your docker container. If not do it and add the config above. Hope this helps :)!