-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (43 loc) · 1.12 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
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 -v2 && \
coverage report > /OpenComptage/testoutputs/coverage_report.txt'
volumes:
- ${PWD}:/OpenComptage
- ${PWD}/test_data:/test_data
- ${PWD}/testoutputs:/OpenComptage/testoutputs
db:
image: postgis/postgis:12-2.5
ports:
- 5432:5432
environment:
- POSTGRES_DB=comptages
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- 'postgis-data:/var/lib/postgresql'
restart: "no"
volumes:
postgis-data: