Added service container for Selenium standalone with Chrome (#519)

* Added service container for Selenium standalone with Chrome
This commit is contained in:
Edmund Luong 2017-01-01 10:22:01 -05:00 committed by Philippe Trépanier
parent 978dd425b9
commit 2fc3919598
3 changed files with 23 additions and 0 deletions

View File

@ -53,6 +53,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modified to
- [Use phpMyAdmin](#Use-phpMyAdmin) - [Use phpMyAdmin](#Use-phpMyAdmin)
- [Use pgAdmin](#Use-pgAdmin) - [Use pgAdmin](#Use-pgAdmin)
- [Use ElasticSearch](#Use-ElasticSearch) - [Use ElasticSearch](#Use-ElasticSearch)
- [Use Selenium](#Use-Selenium)
- [CodeIgniter](#CodeIgniter): - [CodeIgniter](#CodeIgniter):
- [Install CodeIgniter](#Install-CodeIgniter) - [Install CodeIgniter](#Install-CodeIgniter)
- [Misc](#Misc) - [Misc](#Misc)
@ -1058,7 +1059,17 @@ docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete-
docker restart {container-name} docker restart {container-name}
``` ```
<br>
<a name="Use-Selenium"></a>
### Use Selenium
1 - Run the Selenium Container (`selenium`) with the `docker-compose up` command. Example:
```bash
docker-compose up -d selenium
```
2 - Open your browser and visit the localhost on port **4444** at the following URL: `http://localhost:4444/wd/hub`

View File

@ -324,6 +324,13 @@ services:
links: links:
- php-fpm - php-fpm
### Selenium Container #########################################
selenium:
build: ./selenium
ports:
- "4444:4444"
### Volumes Setup ########################################### ### Volumes Setup ###########################################
volumes: volumes:

5
selenium/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM selenium/standalone-chrome
MAINTAINER Edmund Luong <edmundvmluong@gmail.com>
EXPOSE 4444