SlideShare a Scribd company logo
Integrate Docker With Selenium-
C#- Mbunit framework
Agenda
 What is Docker
 Advantages
 Frequently used Commands
 How to hook Docker into Selenium?
 Demo
 Challenges
What is Docker??
 An open source tool that can package
an application and its dependencies
such as libraries in a virtual container
 Can run on any Linux server
 Automates the deployment of
applications inside software containers
YouTube Video:
https://www.youtube.com/watch?v=pGYAg7TMmp0
Advantages
 No longer need a virtual machine spin up
for each application
 Greater portability (Solves the problem of
Shipping code from one machine to
another)
 Lesser resources
Virtual Machines Vs Docker
Boot2Docker Commands:
 Docker sits on top of Linux kernel and inorder to access it from
Windows or Mac OS , we need to install boot2docker
 Download Location:
◦ https://github.com/boot2docker/windows-installer/releases
Docker Commands
 Once the boot2docker VM is up and running , you
can use the below commands
 Command list:
https://docs.docker.com/reference/commandline/run/
Hook Docker into Selenium
 Download the Images to your local:
Hub (Server):
 docker pull selenium/hub:latest
Nodes (Browsers):
 docker pull selenium/node-chrome:2.44.0
 docker pull selenium/node-chrome:2.45.0
 docker pull selenium/node-chrome:latest
 Export the images to an archive(.tar file) if needed
◦ docker save -o ~/Downloads/docker_selenium_hub.tar selenium/hub
◦ docker save –o ~/Downloads/docker_selenium_node_chrome.2.46.0.tar
selenium/node-chrome:2.46.0
 Load the images from the .tar file
◦ docker load --input ~/Downloads/docker_selenium_hub.tar
All these images are maintained by Selenium development team
https://github.com/SeleniumHQ/docker-selenium
https://hub.docker.com/
Running the Selenium Grid/Node
 Start your Selenium Grid (Registering the Hub and the Nodes)
◦ docker run -d -p 4444:4444 --name selenium-hub selenium/hub
◦ docker run -d --link selenium-hub:hub selenium/node-
chrome:2.45.0
 Verify if your grid is running
◦ bootdocker ip (192.168.59.103)
◦ http://192.168.59.103:4444/grid/console
Demo
 Run a Sample UI acceptance test by
pointing the hub address to be
boot2docker ip address
 Github: Project Url
https://github.com/sujithvakathanam/Do
cker-C--MbunitFramweork-for-UI-
acceptance-Test
Challenges
 Legacy app with too many
dependencies and complexities may
not be suitable
 Still in the Early phase
 Latency between boot2docker and
Linux kernel
◦ Eg:Starting or Stopping or Removing a
container do have latency issues
Q & A???

More Related Content

What's hot (20)

PDF
IBM Index 2018 Conference Workshop: Modernizing Traditional Java App's with D...
Eric Smalling
 
PDF
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
PDF
Exploring Docker in CI/CD
Henry Huang
 
PDF
Webinar: Creating an Effective Docker Build Pipeline for Java Apps
Codefresh
 
PDF
Global Operations with Docker for the Enterprise - Nico Kabar, Docker
Docker, Inc.
 
PPTX
Modernizing Traditional Apps with Docker Enterprise Edition
Elton Stoneman
 
PPTX
CloudExpo 2018: Docker - Power Your Move to the Cloud
Elton Stoneman
 
PDF
Webinar: Using Docker Multi-stage Build to Create Advanced Pipelines
Codefresh
 
PPTX
Getting Started with Azure Kubernetes Service
Sean Whitesell
 
PDF
How to Improve Your Image Builds Using Advance Docker Build
Docker, Inc.
 
PDF
What’s New in Docker - Victor Vieux, Docker
Docker, Inc.
 
PPTX
CI, CD with Docker, Jenkins and Tutum
Sreenivas Makam
 
PDF
Browser Testing with Docker - Craig Huber
Docker, Inc.
 
PDF
Docker for developers on mac and windows
Docker, Inc.
 
PPTX
WinOps 2017 - Docker on Windows, the Beginner's Guide
Elton Stoneman
 
PDF
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
PPTX
Webinar: Development Swarm Cluster with Docker Compose V3
Codefresh
 
PDF
On-Demand Image Resizing from Part of the monolith to Containerized Microserv...
Docker, Inc.
 
PDF
CodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniter
Weerayut Hongsa
 
PDF
From Zero Docker to Hackathon Winner - Marcos Lilljedahl and Jimena Tapia
Docker, Inc.
 
IBM Index 2018 Conference Workshop: Modernizing Traditional Java App's with D...
Eric Smalling
 
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
Exploring Docker in CI/CD
Henry Huang
 
Webinar: Creating an Effective Docker Build Pipeline for Java Apps
Codefresh
 
Global Operations with Docker for the Enterprise - Nico Kabar, Docker
Docker, Inc.
 
Modernizing Traditional Apps with Docker Enterprise Edition
Elton Stoneman
 
CloudExpo 2018: Docker - Power Your Move to the Cloud
Elton Stoneman
 
Webinar: Using Docker Multi-stage Build to Create Advanced Pipelines
Codefresh
 
Getting Started with Azure Kubernetes Service
Sean Whitesell
 
How to Improve Your Image Builds Using Advance Docker Build
Docker, Inc.
 
What’s New in Docker - Victor Vieux, Docker
Docker, Inc.
 
CI, CD with Docker, Jenkins and Tutum
Sreenivas Makam
 
Browser Testing with Docker - Craig Huber
Docker, Inc.
 
Docker for developers on mac and windows
Docker, Inc.
 
WinOps 2017 - Docker on Windows, the Beginner's Guide
Elton Stoneman
 
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
Webinar: Development Swarm Cluster with Docker Compose V3
Codefresh
 
On-Demand Image Resizing from Part of the monolith to Containerized Microserv...
Docker, Inc.
 
CodeIgniter For Project : Workshop 001 - Install Docker and CodeIgniter
Weerayut Hongsa
 
From Zero Docker to Hackathon Winner - Marcos Lilljedahl and Jimena Tapia
Docker, Inc.
 

Viewers also liked (20)

PDF
SeleniumCamp 2015 Andrii Soldatenko
Andrii Soldatenko
 
PDF
Docker 101 2015-05-28
Adrian Otto
 
PDF
Selenium Gridで遊ぼう
洋史 東平
 
PPTX
Managing Large Selenium Grid
dimakovalenko
 
PDF
Meet the Selenium Grid
Alexey Nikolaenko
 
PPTX
Distributed automation sel_conf_2015
aragavan
 
PPTX
Selenium-Grid-Extras
Shawn McCarthy
 
PDF
KraQA #22, Filip Cynarski - Selenium Grid w chmurze Amazon Web Services
kraqa
 
PPTX
Selenium Camp 2016 - Effective UI tests scaling on Java
Sergey Korol
 
PDF
Docker use dockerfile
cawamata
 
PPTX
Introduction to Docker - What is it and how is it compared to VM's
Jeremy Haas
 
PPTX
Docker Internals - Twilio talk November 14th, 2013
Guillaume Charmes
 
PDF
Selenium grid workshop london 2016
Marcus Merrell
 
PPTX
File System Implementation & Linux Security
Geo Marian
 
PPTX
Docker
Cary Gordon
 
PPTX
Getting Started with Docker
Geeta Vinnakota
 
PDF
2009-08-11 IBM Teach the Teachers (IBM T3), Linux Security Overview
Shawn Wells
 
PDF
Selenium WebDriver with C#
srivinayak
 
PDF
Linux Security Scanning with Lynis
Michael Boelen
 
PPTX
Scaling and Managing Selenium Grid
dimakovalenko
 
SeleniumCamp 2015 Andrii Soldatenko
Andrii Soldatenko
 
Docker 101 2015-05-28
Adrian Otto
 
Selenium Gridで遊ぼう
洋史 東平
 
Managing Large Selenium Grid
dimakovalenko
 
Meet the Selenium Grid
Alexey Nikolaenko
 
Distributed automation sel_conf_2015
aragavan
 
Selenium-Grid-Extras
Shawn McCarthy
 
KraQA #22, Filip Cynarski - Selenium Grid w chmurze Amazon Web Services
kraqa
 
Selenium Camp 2016 - Effective UI tests scaling on Java
Sergey Korol
 
Docker use dockerfile
cawamata
 
Introduction to Docker - What is it and how is it compared to VM's
Jeremy Haas
 
Docker Internals - Twilio talk November 14th, 2013
Guillaume Charmes
 
Selenium grid workshop london 2016
Marcus Merrell
 
File System Implementation & Linux Security
Geo Marian
 
Docker
Cary Gordon
 
Getting Started with Docker
Geeta Vinnakota
 
2009-08-11 IBM Teach the Teachers (IBM T3), Linux Security Overview
Shawn Wells
 
Selenium WebDriver with C#
srivinayak
 
Linux Security Scanning with Lynis
Michael Boelen
 
Scaling and Managing Selenium Grid
dimakovalenko
 
Ad

Similar to Hooking Docker With Selenium (20)

PPTX
Develop with docker 2014 aug
Vincent De Smet
 
PDF
Running the Oracle SOA Suite Environment in a Docker Container
Guido Schmutz
 
PPTX
How to _docker
Abdur Rab Marjan
 
PDF
Docker
Abhishek Tomar
 
PPTX
Docker
Hussien Elhannan
 
PPTX
vodQA(Pune) 2018 - Docker in Testing
vodQA
 
PDF
Docker in everyday development
Justyna Ilczuk
 
PDF
[@NaukriEngineering] Docker 101
Naukri.com
 
PDF
Docker: A New Way to Turbocharging Your Apps Development
msyukor
 
PDF
PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...
Puppet
 
PDF
Dockers & kubernetes detailed - Beginners to Geek
wiTTyMinds1
 
PDF
Learning Docker with Thomas
Thomas Tong, FRM, PMP
 
PPTX
Docker framework
Chanaka Lasantha
 
PDF
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
PDF
Faster and Easier Software Development using Docker Platform
msyukor
 
PDF
Introduction to Docker
Tharaka Devinda
 
PDF
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
PDF
Introducing Docker
Francesco Pantano
 
PPTX
Academy PRO: Docker. Part 2
Binary Studio
 
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
Develop with docker 2014 aug
Vincent De Smet
 
Running the Oracle SOA Suite Environment in a Docker Container
Guido Schmutz
 
How to _docker
Abdur Rab Marjan
 
vodQA(Pune) 2018 - Docker in Testing
vodQA
 
Docker in everyday development
Justyna Ilczuk
 
[@NaukriEngineering] Docker 101
Naukri.com
 
Docker: A New Way to Turbocharging Your Apps Development
msyukor
 
PuppetConf 2017: What’s in the Box?!- Leveraging Puppet Enterprise & Docker- ...
Puppet
 
Dockers & kubernetes detailed - Beginners to Geek
wiTTyMinds1
 
Learning Docker with Thomas
Thomas Tong, FRM, PMP
 
Docker framework
Chanaka Lasantha
 
Using Docker to build and test in your laptop and Jenkins
Micael Gallego
 
Faster and Easier Software Development using Docker Platform
msyukor
 
Introduction to Docker
Tharaka Devinda
 
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
ElasTest Project
 
Introducing Docker
Francesco Pantano
 
Academy PRO: Docker. Part 2
Binary Studio
 
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
Ad

Hooking Docker With Selenium

  • 1. Integrate Docker With Selenium- C#- Mbunit framework
  • 2. Agenda  What is Docker  Advantages  Frequently used Commands  How to hook Docker into Selenium?  Demo  Challenges
  • 3. What is Docker??  An open source tool that can package an application and its dependencies such as libraries in a virtual container  Can run on any Linux server  Automates the deployment of applications inside software containers YouTube Video: https://www.youtube.com/watch?v=pGYAg7TMmp0
  • 4. Advantages  No longer need a virtual machine spin up for each application  Greater portability (Solves the problem of Shipping code from one machine to another)  Lesser resources Virtual Machines Vs Docker
  • 5. Boot2Docker Commands:  Docker sits on top of Linux kernel and inorder to access it from Windows or Mac OS , we need to install boot2docker  Download Location: ◦ https://github.com/boot2docker/windows-installer/releases
  • 6. Docker Commands  Once the boot2docker VM is up and running , you can use the below commands  Command list: https://docs.docker.com/reference/commandline/run/
  • 7. Hook Docker into Selenium  Download the Images to your local: Hub (Server):  docker pull selenium/hub:latest Nodes (Browsers):  docker pull selenium/node-chrome:2.44.0  docker pull selenium/node-chrome:2.45.0  docker pull selenium/node-chrome:latest  Export the images to an archive(.tar file) if needed ◦ docker save -o ~/Downloads/docker_selenium_hub.tar selenium/hub ◦ docker save –o ~/Downloads/docker_selenium_node_chrome.2.46.0.tar selenium/node-chrome:2.46.0  Load the images from the .tar file ◦ docker load --input ~/Downloads/docker_selenium_hub.tar All these images are maintained by Selenium development team https://github.com/SeleniumHQ/docker-selenium https://hub.docker.com/
  • 8. Running the Selenium Grid/Node  Start your Selenium Grid (Registering the Hub and the Nodes) ◦ docker run -d -p 4444:4444 --name selenium-hub selenium/hub ◦ docker run -d --link selenium-hub:hub selenium/node- chrome:2.45.0  Verify if your grid is running ◦ bootdocker ip (192.168.59.103) ◦ http://192.168.59.103:4444/grid/console
  • 9. Demo  Run a Sample UI acceptance test by pointing the hub address to be boot2docker ip address  Github: Project Url https://github.com/sujithvakathanam/Do cker-C--MbunitFramweork-for-UI- acceptance-Test
  • 10. Challenges  Legacy app with too many dependencies and complexities may not be suitable  Still in the Early phase  Latency between boot2docker and Linux kernel ◦ Eg:Starting or Stopping or Removing a container do have latency issues

Editor's Notes

  • #6: Docker sits on top of linux kernal. Boot2 docker is a lightweight linux distribution made to run Docker Containers. It runs completely from RAM Environment Variables: Name: DOCKER_CERT_PATH Value: C:\Users\XXX\.boot2docker\certs\boot2docker-vm Name: DOCKER_HOST Value: tcp://192.168.59.103:2376 Name:DOCKER_TLS_VERIFY Value: 1