Rehearse
所属分类:前端开发
开发工具:Shell
文件大小:8KB
下载次数:0
上传日期:2014-09-26 15:30:02
上 传 者:
sh-1993
说明: 用于运行Selenium中心和无头浏览器的Docker容器。
(Docker containers for running a Selenium hub and headless browsers.)
文件列表:
Vagrantfile (665, 2014-09-26)
ansible (0, 2014-09-26)
ansible\roles (0, 2014-09-26)
ansible\roles\docker (0, 2014-09-26)
ansible\roles\docker\handlers (0, 2014-09-26)
ansible\roles\docker\handlers\main.yml (62, 2014-09-26)
ansible\roles\docker\tasks (0, 2014-09-26)
ansible\roles\docker\tasks\debian.yml (369, 2014-09-26)
ansible\roles\docker\tasks\main.yml (188, 2014-09-26)
ansible\roles\docker\tasks\redhat.yml (303, 2014-09-26)
ansible\vagrant.yml (84, 2014-09-26)
browsers.py (1442, 2014-09-26)
build.sh (2120, 2014-09-26)
docker_files (0, 2014-09-26)
docker_files\base (0, 2014-09-26)
docker_files\base\Dockerfile (213, 2014-09-26)
docker_files\browser-base (0, 2014-09-26)
docker_files\browser-base\Dockerfile (185, 2014-09-26)
docker_files\browser-base\register.sh (239, 2014-09-26)
docker_files\chrome (0, 2014-09-26)
docker_files\chrome\Dockerfile (527, 2014-09-26)
docker_files\firefox (0, 2014-09-26)
docker_files\firefox\Dockerfile (184, 2014-09-26)
docker_files\hub (0, 2014-09-26)
docker_files\hub\Dockerfile (149, 2014-09-26)
start_hub.sh (67, 2014-09-26)
# Selenium containers
This repo contains files to build and run docker containers for running a selenium hub and headless instances of Firefox and Chrome. A Vagrant configuration is also included which can be used as a build environment. Ansible is used to provision the VM with the latest version of Docker.
## Building the images
### Vagrant
If you'd like to build the images within Vagrant:
vagrant up
vagrant ssh
Inside the VM run:
cd /vagrant
./build.sh
### Build commands
Download necessary dependencies and build the containers:
./build.sh
Stop and remove all running selenium containers and delete their images:
./build.sh clean_images
Remove downloaded dependencies:
./build.sh clean
## Running the containers
### Running the server
sudo docker run -d -p 4444:4444 vallarfax/selenium-hub
### Running the clients
A Python script has been included to make starting and stopping containers a bit easier. To start containers for both Chrome and Firefox run:
python browsers.py start --hub=HUB_IP_ADDRESS
More information about the script can be seen by running:
python browsers.py --help
近期下载者:
相关文件:
收藏者: