docker image to test using protractor, chrome & firefox
10K+
Based on caltha/protractor, this image contains a fully configured environment for running Protractor tests under the Chromium browser.
This version additionally supports linking docker containers together to test software in another container, and passing a custom base URL into your protractor specs so you don't have to hard-code the URL in them.
I have stripped out the automatic running of protractor as we inject the tests through Concourse
When inside the container you can run the tests at the console by simply invoking protractor. When you are done, you terminate the Protractor container with docker kill $CONTAINER.
Your protractor.conf.js must specify the no-sandbox option for Chrome to cleanly run inside Docker. A minimal example config would be:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
framework: "jasmine2",
specs: ['*.spec.js'],
// Chrome is not allowed to create a SUID sandbox when running inside Docker
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['no-sandbox']
}
}
};
Content type
Image
Digest
Size
629.3 MB
Last updated
about 7 years ago
docker pull flexys/docker-protractor