-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.ci.yaml
49 lines (45 loc) · 1.18 KB
/
docker-compose.ci.yaml
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
# Runs the whole test suite, with the test runner inside a container. This is ideal for CI.
services:
test-runner:
image: bittorrent-benchmarks:test
container_name: test-runner
volumes:
- shared-volume:/opt/bittorrent-benchmarks/volume
entrypoint: [ "bash", "-c", "/opt/bittorrent-benchmarks/docker/bin/run-tests.sh" ]
healthcheck:
test: stat /opt/bittorrent-benchmarks/volume/.initialized
interval: 1s
timeout: 5s
retries: 150
deluge-1:
volumes: !override
- type: volume
source: shared-volume
target: /var/lib/deluge
volume:
subpath: deluge-1
depends_on:
test-runner:
condition: service_healthy
deluge-2:
volumes: !override
- type: volume
source: shared-volume
target: /var/lib/deluge
volume:
subpath: deluge-2
depends_on:
test-runner:
condition: service_healthy
deluge-3:
volumes: !override
- type: volume
source: shared-volume
target: /var/lib/deluge
volume:
subpath: deluge-3
depends_on:
test-runner:
condition: service_healthy
volumes:
shared-volume: