Skip to content

Commit 8dcd694

Browse files
committed
Config: ignore, package deps, docker environments
0 parents  commit 8dcd694

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
seleniumhub:
2+
image: selenium/hub:2.53.0
3+
ports:
4+
- 4444:4444
5+
6+
# firefoxnode:
7+
# image: selenium/node-firefox
8+
# expose:
9+
# - 5900
10+
# links:
11+
# - seleniumhub:hub
12+
13+
chromenode:
14+
image: selenium/node-chrome:2.53.0
15+
ports:
16+
- 5900
17+
links:
18+
- seleniumhub:hub

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "protractor-docker-setup",
3+
"dependencies": {
4+
"npm-run-all": "^4.0.1",
5+
"protractor": "4.0.9"
6+
},
7+
"scripts": {
8+
"test": "npm-run-all test:up:* test:run test:down",
9+
"test:up:init": "docker-compose up --remove-orphans -d",
10+
"test:up:scale": "docker-compose scale chromenode=5",
11+
"test:run": "protractor docker-selenium-grid-conf.js",
12+
"test:down": "docker-compose down --remove-orphans"
13+
}
14+
}

0 commit comments

Comments
 (0)