I will take you through the very rewarding steps to set-up Selenium Grid using Docker-Compose hosted in Google Cloud.
The Steps we will take.
- Install an Ubuntu instance on Google Cloud
- Open Port 4444 - This port is what our Selenium Grid will be on.
- Install Docker Compose on our new Ubuntu Cloud Instance.
- Install and Run a Selenium Grid via Docker Compose
- Install an Ubuntu instance on Google Cloud.
There are a great cloud services. I'm choosing Google Cloud because they currently have the best free offering. $300 (USD) and 60 days. If you follow my steps, you won't go over 50 cents.
- Sign up using the free offering: cloud.google.com

- Create an Ubuntu 15 instance
- Install Docker Compose - Click on SSH

- After the shell opens enter
- $ sudo su
- Now install Docker Compose
- https://docs.docker.com/engine/installation/linux/ubuntulinux/
- NOTE: Make sure you install for Linux 15
- Now the pay off. Lets get Selenium grid up and running.
- Create a directory: $ mkdir compose
- $ cd compose
- $ nano docker-compose.yml
- copy and paste
hub: image: selenium/hub ports: - "4444:4444" chrome: image: selenium/node-chrome links: - hub firefox: image: selenium/node-firefox links: - hub
- Save
- Run: $ docker-compose up
- You can see the selenium-grid at <instance ip>
- http://104.197.200.6:4444/grid/console
- Docker scales easily making this perfect Testing.
- Run: $ docker-compose scale chrome=7
- What we get is 7 additional agents!
Now - let's run a Selenium Test using our new toy.
See follow-up blog: http://cloud-docker-selenium.blogspot.com/p/selenium-grid-testng-parallel-execution.html
- Create an Ubuntu 15 instance
- Install Docker Compose - Click on SSH
- After the shell opens enter
- $ sudo su
- Now install Docker Compose
- https://docs.docker.com/engine/installation/linux/ubuntulinux/
- NOTE: Make sure you install for Linux 15
- Now the pay off. Lets get Selenium grid up and running.
- Create a directory: $ mkdir compose
- $ cd compose
- $ nano docker-compose.yml
- copy and paste
hub: image: selenium/hub ports: - "4444:4444" chrome: image: selenium/node-chrome links: - hub firefox: image: selenium/node-firefox links: - hub - Save
- Run: $ docker-compose up
- You can see the selenium-grid at <instance ip>
- http://104.197.200.6:4444/grid/console
- Docker scales easily making this perfect Testing.
- Run: $ docker-compose scale chrome=7
- What we get is 7 additional agents!
Now - let's run a Selenium Test using our new toy.
See follow-up blog: http://cloud-docker-selenium.blogspot.com/p/selenium-grid-testng-parallel-execution.html