-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
60 lines (53 loc) · 1.8 KB
/
docker-compose.test.yml
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
services:
proxy:
container_name: evokstest_proxy
depends_on:
- web
restart: "no"
postgres:
container_name: evokstest_postgres
restart: "no"
change-vol-ownership:
container_name: evokstest_change-vol-ownership
# Keep container running during tests to ensure proper --exit-code-from functionality
command: >
sh -c "(chmod -R 777 /tmp/change-ownership-fuseki-dev && chmod -R 777 /tmp/change-ownership-fuseki-live ; echo $? > /tmp/chmod_exit_status) ;
[ ! -s /tmp/skosmos-dev/config.ttl ] && cp -a /tmp/skosmos-dev/config-template.ttl /tmp/skosmos-dev/config.ttl || true ;
[ ! -s /tmp/skosmos-live/config.ttl ] && cp -a /tmp/skosmos-live/config-template.ttl /tmp/skosmos-live/config.ttl || true ;
tail -f /dev/null"
restart: "no"
healthcheck:
test: ["CMD-SHELL", "cat /tmp/chmod_exit_status | grep -q '^0$'"]
interval: 5s
retries: 5
web:
container_name: evokstest_testrunner
entrypoint: >
sh -c "set -e &&
cd ./evoks &&
python manage.py migrate &&
coverage run manage.py test -v 3 tests/model/ tests/migration/ tests/skosmos/ tests/fuseki/ tests/views/ tests/evoks &&
coverage report &&
coverage xml"
depends_on:
change-vol-ownership:
condition: service_healthy
restart: "no"
fuseki-dev:
container_name: evokstest_fuseki-dev
restart: "no"
fuseki-live:
container_name: evokstest_fuseki-live
restart: "no"
skosmos-dev:
container_name: evokstest_skosmos-dev
depends_on:
change-vol-ownership:
condition: service_healthy
restart: "no"
skosmos-live:
container_name: evokstest_skosmos-live
depends_on:
change-vol-ownership:
condition: service_healthy
restart: "no"