Public | Automated Build

Last pushed: 2 years ago
Short Description
A docker image of PhantomJS 2.0 / GhostDriver that's compatible with selenium grid hub
Full Description

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

Dockerfile

akeem/selenium-node-phantomjs Dockerfile

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

Docker Pull Command
Owner
akeem

Comments (6)
bhaku
a year ago

New versions of the image are not building up.

vireshdoshi
2 years ago

Great Image! I use it with Selenium Hub and run Cucumber JVM tests against it.

rodrigojmartin
2 years ago

I'm giving this a shot, just what I need! Thank you!

kcmerrill
2 years ago

Akeem, Just wanted to say thank you for this!

akeem
2 years ago

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.

snowe
2 years ago

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/