-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 2.28 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 2.28 KB
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
---
services:
mariadb:
image: mariadb:10.7
restart: always
container_name: eb-db-test
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "eb_test"
MYSQL_USER: "eb_testrw"
MYSQL_PASSWORD: "secret"
MYSQL_INITDB_SKIP_TZINFO: 1
volumes:
- eb-mysql-test-data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin --user=root --password=$${MYSQL_ROOT_PASSWORD} ping"]
timeout: 2s
retries: 20
interval: 2s
engine:
build:
context: ../
# override this in a dedicated dockerfile per php version
# dockerfile: docker/ci/Dockerfile
hostname: engine.dev.openconext.local
depends_on:
mariadb:
condition: service_healthy
environment:
APP_ENV: ci
SYMFONY_ENV: ci
APACHE_UID: "#${APACHE_UID}"
APACHE_GUID: "#${APACHE_GID}"
volumes:
- ../:/var/www/html
- ../ci/qa-config/files/engine.dev.openconext.local.crt:/config/engine/engineblock.crt
- ../ci/qa-config/files/engine.dev.openconext.local.key:/config/engine/engineblock.pem
healthcheck:
test: ["CMD-SHELL", "curl -sI http://localhost/| grep '^Server: Apache'"]
timeout: 2s
retries: 20
interval: 5s
selenium:
image: selenium/standalone-chrome:2.53.1
hostname: selenium.dev.openconext.local
# NB: Selenium2 is OLD and doesn't have arm64 images; to run this on arm64, you need Rosetta enabled
platform: amd64
shm_size: 2gb
# environment:
# START_XVFB: "false"
healthcheck:
test: ["CMD", "/opt/bin/check-grid.sh:", "--host", "0.0.0.0", "--port", "4444"]
timeout: 30s
retries: 5
interval: 15s
cypress:
image: "cypress/included:13.1.0"
environment:
- CYPRESS_baseUrl=https://engine.dev.openconext.local
working_dir: /e2e
entrypoint: cypress open --project .
volumes:
- ../tests:/e2e
- ../theme:/theme
volumes:
eb-mysql-data:
eb-mysql-test-data:
eb-engine-vendor: