-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerRun.sh
More file actions
32 lines (21 loc) · 789 Bytes
/
DockerRun.sh
File metadata and controls
32 lines (21 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash/
# Starts up docker selenium hub with chrome node
# Author atomicfruitcake
echo "Please ensure Docker image is deleted from virtualbox GUI"
# Remove machine is exists
if [ $(docker-machine ls | wc -l) -eq 1 ];
then
echo "No default docker machine detected, starting docker-machine"
else
docker-machine rm -f default
fi
# Create a new machine called default using a virtualbox driver
docker-machine create \
--driver virtualbox \
--virtualbox-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.12.3/boot2docker.iso \
default
eval "$(docker-machine env default)"
# Print the machines IP (should be 192.168.99.100 by default on boot2docker, or localhost if not)
docker-machine ip default
# Spin up the Selenium Grid
docker-compose up