-
Notifications
You must be signed in to change notification settings - Fork 173
/
docker-compose.yml
61 lines (58 loc) · 1.42 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
version: '3.8'
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:4.25
ports:
- "5900:5900"
web:
build:
context: .
dockerfile: Dockerfile.test.php8
volumes:
- ./:/app
- ./test/test_instrument/NDB_BVL_Instrument_testtest.class.inc:/app/project/instruments/NDB_BVL_Instrument_testtest.class.inc
- ./raisinbread/instruments:/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.php8
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.php8
volumes:
- ./:/app
working_dir: /app
environment:
- LORIS_DB_CONFIG=test/config.xml
- SELENIUM_REQUIRED=true
- DOCKER_WEB_SERVER=http://web:8000
depends_on:
- db
- selenium
- web
entrypoint: /app/test/wait-for-services.sh