Giter VIP home page Giter VIP logo

kuttumiah / ansible-role-docker-selenium-grid Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13 KB

Run Selenium Grid Server (Hub and Nodes) with Docker images. Ansible Role - Docker Selenium Grid https://galaxy.ansible.com/kuttumiah/docker-selenium-grid/

License: GNU General Public License v2.0

ansible role dokcer selenium selenium-grid selenium-hub selenium-node docker-selenium docker-selenium-grid ubuntu

ansible-role-docker-selenium-grid's Introduction

Ansible Role: Docker Selenium Grid

An Ansible role to create Selenium Grid Server (Hub and Nodes) with Docker images from SeleniumHQ.

Requirements

A host system that has docker and docker-py installed.

docker-py could installed via pip by running $ sudo pip install docker-py

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

docker_selenium_tag: latest
docker_selenium_pull_image: false
docker_selenium_state: started

Desired tags of the images could be used from Docker Registry. Setting docker_selenium_pull_image: true will always pull the latest version from the registry.

docker_selenium_hub_name: selenium-hub
docker_selenium_hub_port: 4444:4444
docker_selenium_hub_image: selenium/hub
docker_selenium_hub_link: "{{ docker_selenium_hub_name }}:hub"

Use docker CLI syntax: 8000, 9000:8000, or 0.0.0.0:9000:8000, where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface.

docker_selenium_nodes:
  - name: selenium-firefox
    image: selenium/node-firefox
    count: 1
  - name: selenium-chrome
    image: selenium/node-chrome
    count: 1

Dependencies

None.

Example Playbook

- hosts: all
  vars_files:
    - vars/main.yml
  roles:
    - { role: kuttumiah.docker-selenium-grid }

Inside vars/main.yml:

docker_selenium_tag: 3.8.1

docker_selenium_nodes:
  - name: selenium-firefox-debug
    image: selenium/node-firefox-debug
    count: 2
  - name: selenium-chrome-debug
    image: selenium/node-chrome-debug
    count: 2

License

GNU General Public License v2.0

Author Information

This role was created in 2018 by Md Robaiatul Islam.

ansible-role-docker-selenium-grid's People

Contributors

kuttumiah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.