attempt at jnlp nodejs with chrome.
4.1K
Ideal for running end-to-end integration tests in CI using jenkins and kubernetes.
docker run -itv $PWD:/tests caperneoignis/headless-nodejs
This will open a bash prompt where you can npm install && npm test or whatever.
Start Chrome with google-chrome --headless --disable-gpu --no-sandbox.
Headless Chrome currently requires the --no-sandbox flag in order to run in a container.
This is potentially unsafe so you should not use it on untrusted sites.
Image includes yarn, git and build-essential required for building native NPM modules.
If using Kubernetes plugin with Jenkins to run Jenkins slaves, you can input this image as you would openshift containers of the same purpose. This should run the commands as a Jenkins slave would in a normal 'bare-metal' setup. So your Jenkins pipeline files only need to be updated with the associated tag you applied to the container template in the gobal configuration.
Content type
Image
Digest
Size
346.5 MB
Last updated
almost 8 years ago
docker pull caperneoignis/headless-nodejs