forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (111 loc) · 2.75 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '2'
services:
db:
build:
context: .
dockerfile: Dockerfile.test.db
args:
BASE_DIR: /app/
volumes:
- ./test/mysql-config:/etc/mysql/conf.d
environment:
- MYSQL_DATABASE=LorisTest
- MYSQL_RANDOM_ROOT_PASSWORD=yes
selenium:
image: selenium/standalone-firefox-debug:3.8.1-aluminum
volumes:
- /dev/shm:/dev/shm
ports:
- "5900:5900"
environment:
- SE_OPTS=-enablePassThrough false
web:
build:
context: .
dockerfile: Dockerfile.test.php7
volumes:
- ./:/app
- ./test/test_instrument:/app/project/instruments
environment:
- LORIS_DB_CONFIG=/app/test/config.xml
depends_on:
- db
command: php -S 0.0.0.0:8000 -t /app/htdocs /app/htdocs/router.php
unit-tests:
build:
context: .
dockerfile: Dockerfile.test.php7
volumes:
- ./:/app
working_dir: /app
environment:
- LORIS_DB_CONFIG=test/config.xml
depends_on:
- db
entrypoint: /app/test/wait-for-services.sh
integration-tests:
build:
context: .
dockerfile: Dockerfile.test.php7
volumes:
- ./:/app
working_dir: /app
environment:
- LORIS_DB_CONFIG=test/config.xml
- SELENIUM_REQUIRED=true
depends_on:
- db
- selenium
- web
entrypoint: /app/test/wait-for-services.sh
selenium-debug:
image: selenium/standalone-firefox-debug:3.8.1-aluminum
links:
- web-debug:web
ports:
- "5901:5900"
web-debug:
build:
context: .
dockerfile: Dockerfile.test.php7.debug
volumes:
- ./:/app
- ./test/test_instrument:/app/project/instruments
environment:
- LORIS_DB_CONFIG=/app/test/config.xml
- XDEBUG_CONFIG=remote_host=${XDEBUG_REMOTE_HOST}
- PHP_IDE_CONFIG=serverName=LorisTests
depends_on:
- db
command: php -S 0.0.0.0:8000 -t /app/htdocs /app/htdocs/router.php
unit-tests-debug:
build:
context: .
dockerfile: Dockerfile.test.php7.debug
volumes:
- ./:/app
working_dir: /app
environment:
- LORIS_DB_CONFIG=test/config.xml
- XDEBUG_CONFIG=remote_host=${XDEBUG_REMOTE_HOST}
- PHP_IDE_CONFIG=serverName=LorisTests
depends_on:
- db
entrypoint: /app/test/wait-for-services.sh
integration-tests-debug:
build:
context: .
dockerfile: Dockerfile.test.php7.debug
volumes:
- ./:/app
working_dir: /app
environment:
- LORIS_DB_CONFIG=test/config.xml
- SELENIUM_REQUIRED=true
- XDEBUG_CONFIG=remote_host=${XDEBUG_REMOTE_HOST}
- PHP_IDE_CONFIG=serverName=LorisTests
links:
- db
- selenium-debug:selenium
- web-debug:web
entrypoint: /app/test/wait-for-services.sh