docker-selenium
Ansible Role: docker-selenium
An Ansible Role that runs selenium docker images built by SeleniumHQ.
Requirements
A host system that has Docker installed.
Role Variables
- docker_selenium_version: the selenium release version, default is 2.45.0. See SeleniumHQ for more recent releases.
- docker_selenium_hub_name: logical name for the hub, default is selenium-hub.
- docker_selenium_hub_port: the hub port mapping between host and container, default 4444:4444.
- docker_selenium_hub_image: selenium hub image name in DockerHub.
- docker_selenium_firefox_image: selenium node image for firefox in DockerHub.
- docker_selenium_chrome_image: selenium node image for chrome in DockerHub.
- docker_selenium_hub_link: the hub link for nodes to link with.
- docker_selenium_firefox_nodes: the number of firefox container nodes to run.
- docker_selenium_chrome_nodes: the number of chrome container nodes to run.
- docker_selenium_pull_image: check docker registry for image, default is to pull if missing.
- docker_selenium_state: default is started, use reloaded for changes made.
Dependencies
None.
Example Playbook
Run a specific version of selenium specifying the number of nodes and using debug containers:
- hosts: servers
roles:
- { role: jpparsons.docker-selenium, docker_selenium_version: 2.46.0,
docker_selenium_chrome_nodes: 5, docker_selenium_firefox_image: "selenium/node-firefox-debug",
docker_selenium_firefox_nodes: 5, docker_selenium_chrome_image: "selenium/node-chrome-debug",
docker_selenium_state: "reloaded" }
License
GPLv2
Author Information
John Parsons
Feedback, bug-reports, requests, ...
Are welcome!
About
Runs SeleniumHQ docker images in a selenium grid confuration for firefox and chrome.
Install
ansible-galaxy install jpparsons/ansible-role-docker-selenium
License
gpl-2.0
Downloads
52
Owner