-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile.yml
More file actions
63 lines (59 loc) · 1.34 KB
/
dockerfile.yml
File metadata and controls
63 lines (59 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
# Selenium Hub
selenium-hub:
image: selenium/hub:4.23.0
container_name: selenium-hub
platform: linux/amd64
ports:
- "4444:4444"
deploy:
resources:
limits:
memory: 4g
cpus: "2.0"
mem_limit: 4g
cpus: "2.0"
# Chrome Node
chrome:
image: selenium/node-chrome:127.0-20240727
container_name: chrome
platform: linux/amd64
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- VNC_PASSWORD=1234
depends_on:
- selenium-hub
mem_limit: 4g
cpus: "2.0"
# Firefox Node
firefox:
image: selenium/node-firefox:128.0-20240727
container_name: firefox
platform: linux/amd64
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- VNC_PASSWORD=1234
depends_on:
- selenium-hub
mem_limit: 4g
cpus: "2.0"
# Java TestNG Project
test-runner:
image: maven:3.8.6-openjdk-11
container_name: test-runner
platform: linux/amd64
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
depends_on:
- selenium-hub
- chrome
- firefox
command: ["sh", "-c", "mvn clean test"]
mem_limit: 4g
cpus: "2.0"