forked from opengisch/OpenComptage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.13 KB
/
docker-compose.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
services:
qgis:
depends_on: [db]
build: ./
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix ro
- ${PWD}/comptages:/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/comptages/
- ${PWD}/test_data:/test_data
command:
- qgis
environment:
- DISPLAY=${DISPLAY}
privileged: true
network_mode: host
qgis_tester:
profiles: [local_test]
depends_on: [db]
build:
dockerfile: ./Dockerfile-test
environment:
LOCAL_TEST: 1
command: |
sh -c 'xvfb-run \
python3 manage.py migrate && \
coverage run --source='.' manage.py test comptages.test && \
coverage report > /OpenComptage/test_outputs/coverage_report.txt'
volumes:
- ${PWD}:/OpenComptage
- ${PWD}/test_data:/test_data
- ${PWD}/test_outputs:/OpenComptage/test_outputs
db:
image: postgis/postgis:${POSTGIS_VERSION:-12-3.4}
ports:
- 5432:5432
environment:
- POSTGRES_DB=comptages
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgis-data:/var/lib/postgresql
restart: "no"
volumes:
postgis-data: