-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.test.yml
83 lines (79 loc) · 2.41 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.3'
services:
layman_test:
container_name: layman_test
image: layman_dev:latest
user: ${UID_GID}
command: bash test.sh
env_file:
- .env.test
environment:
- CI=${CI}
- PYTHONPATH=/code/src:/code
volumes:
- ./layman_data_test:/layman_data_test
- ./sample:/code/sample
- ./src:/code/src
- ./test_tools:/code/test_tools
- ./tests:/code/tests
- ./tmp:/code/tmp
- ./test.sh:/code/test.sh
- ./test_separated.sh:/code/test_separated.sh
- ./test_static.sh:/code/test_static.sh
- ./pytest.ini:/code/pytest.ini
- ./.pylintrc:/code/.pylintrc
- ./version.txt:/code/version.txt
- ./ensure-test-data.sh:/code/ensure-test-data.sh
- ./deps/geoserver/data:/geoserver/data_dir
- ./deps/geoserver/sample/geoserver_data:/geoserver/initial_data_dir
- ./deps/qgis/data:/qgis/data
depends_on:
- celery_worker_test
celery_worker_test:
image: layman_dev:latest
user: ${UID_GID}
# use watchdog
command: bash -c "cd src && python3 wait_for_deps.py && watchmedo auto-restart -d . -p '*.py' --recursive -- python3 -m celery -A layman.celery_app worker -Q $${LAYMAN_CELERY_QUEUE} --loglevel=info"
env_file: .env.test
environment:
- C_FORCE_ROOT=true
- LAYMAN_SKIP_REDIS_LOADING=true
volumes:
- ./layman_data_test:/layman_data_test
- ./sample:/code/sample
- ./src:/code/src
- ./tmp:/code/tmp
- ./deps/qgis/data:/qgis/data
- ./deps/geoserver/data:/geoserver/data_dir
depends_on:
- redis
- postgresql
- nginx-qgis
- geoserver
- micka
- timgen
- layman_client_test
timgen:
container_name: timgen
build:
context: timgen
dockerfile: Dockerfile.production
image: timgen:latest
user: ${UID_GID}
command: node server.js
# ports:
# - 8080:8080
layman_client_test:
container_name: layman_client_test
build:
context: client
dockerfile: docker/Dockerfile.production
args:
- LAYMAN_CLIENT_VERSION=${LAYMAN_CLIENT_VERSION}
- LTC_BASEPATH=${LTC_BASEPATH}
image: layman_client_test:latest
command: sh -c "npm start"
env_file:
- .env.test
depends_on:
- redis