Selenium Grid Node - PhantomJS
A docker image of PhantomJS 2.0 / GhostDriver that's compatible with selenium grid hub
This version of PhantomJS has been patched to fix ghostdriver/#394
How to use this image
First, you will need a Selenium Grid Hub that the Node will connect to.
$ docker run -d -P --name selenium-hub selenium/hub
Once the hub is up and running will want to launch nodes that can run tests. You can run as many nodes as you wish.
$ docker run -d --link selenium-hub:hub akeem/selenium-node-phantomjs
Use PHANTOMJS_OPTS environment variable to pass additional command line options to the phantomjs node. For example to ignore SSL errors:
$ docker run -d -e "PHANTOMJS_OPTS=--ignore-ssl-errors=true" --link selenium-hub:hub akeem/selenium-node-phantomjs
New versions of the image are not building up.
Great Image! I use it with Selenium Hub and run Cucumber JVM tests against it.
I'm giving this a shot, just what I need! Thank you!
Akeem, Just wanted to say thank you for this!
Hi @snowe ,thanks for the feedback! I'll take a look at updating this image in the near future.
In the meantime, feel free to make a pull request on the source project page if you have had a specific base image in mind.
Is there any way you could modify the Dockerfile to use a smaller base image and gain some memory benefits? And combining commands might reduce the size also. http://www.centurylinklabs.com/optimizing-docker-images/