# Deprecated: use https://hub.docker.com/r/weboaks/node-karma-protractor-chrome/
10K+
This image allows to run javascript tests in a headless machine like a CI server.
This image support karma and protractor test under chrome.
Unfortunately, chrome doesn't support container (https://github.com/travis-ci/travis-ci/issues/938), you need to start chrome with --no-sandbox argument to avoid this.
To configure karma and protractor, use this snippets:
browsers: ['Chrome_no_sandbox'],
customLaunchers: {
Chrome_no_sandbox: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['no-sandbox']
}
},
To run karma and protractor on gitlab ci, just use this image, and configure karma and protractor as above. http://doc.gitlab.com/ce/ci/yaml/README.html#image-and-services
https://hub.docker.com/r/weboaks/node5-karma-protractor-chrome/
docker pull weboaks/node5-karma-protractor-chrome
Content type
Image
Digest
Size
374.9 MB
Last updated
almost 10 years ago
docker pull weboaks/node5-karma-protractor-chrome