forked from ashi-psn/SwiftWebDriver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.3 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
services:
httpd:
network_mode: host
build:
context: .
dockerfile: ./infra/HTTPDDockerfile
volumes:
- ./TestAssets:/usr/local/apache2/htdocs/
ports:
- "80:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
selenium:
image: selenium/standalone-chrome:4.2.1-20220531
network_mode: host
ports:
- 4444:4444
- 7900:7900
environment:
- SE_NODE_MAX_SESSIONS=4
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/status"]
interval: 30s
timeout: 10s
retries: 3
swift_web_driver:
&SwiftWebDriver
build:
context: .
dockerfile: ./infra/Dockerfile
volumes:
- .:/SwiftWebDriver
working_dir: /SwiftWebDriver
network_mode: host
environment:
SELENIUM_URL: http://localhost:4444
tty: true
depends_on:
selenium:
condition: service_healthy
httpd:
condition: service_healthy
build:
<<: *SwiftWebDriver
command: /bin/bash -xcl "swift build"
test:
<<: *SwiftWebDriver
command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
shell:
<<: *SwiftWebDriver
entrypoint: /bin/bash