[TASK] Run tests on new bamboo infrastructure
[Packages/TYPO3.CMS.git] / Build / testing-docker / bamboo / docker-compose.yml
1 version: '2.3'
2 services:
3   chrome:
4     image: selenium/standalone-chrome:3.12
5     networks:
6       - test
7   mariadb10:
8     image: mariadb:10
9     environment:
10       MYSQL_ROOT_PASSWORD: funcp
11     tmpfs:
12       - /var/lib/mysql/:rw,noexec,nosuid
13     networks:
14       - test
15   postgres10:
16     image: postgres:10
17     environment:
18       POSTGRES_PASSWORD: funcp
19       POSTGRES_USER: ${HOST_USER}
20     volumes:
21       - /etc/passwd:/etc/passwd,ro
22     tmpfs:
23       - /var/lib/postgresql/data:rw,noexec,nosuid
24     networks:
25       - test
26   redis4:
27     image: redis:4-alpine
28     networks:
29       - test
30   memcached1-5:
31     image: memcached:1.5-alpine
32     networks:
33       - test
34   web:
35     image: typo3gmbh/php72:latest
36     user: ${HOST_UID}
37     stop_grace_period: 1s
38     networks:
39       - test
40     volumes:
41       - bamboo-data:/srv/bamboo/xml-data/build-dir
42     command: php -n -c /etc/php/cli-no-xdebug/php.ini -S web:8000 -t /srv/bamboo/xml-data/build-dir/${bamboo_buildKey}
43
44   start_dependencies_acceptance_install_mariadb10:
45     image: alpine:3.8
46     links:
47       - mariadb10
48       - chrome
49       - web
50     networks:
51       - test
52     command: >
53       /bin/sh -c "
54         echo Waiting for db start...;
55         while ! nc -z mariadb10 3306;
56         do
57           sleep 1;
58         done;
59         echo Connected!;
60       "
61
62   start_dependencies_acceptance_install_postgres10:
63     image: alpine:3.8
64     links:
65       - postgres10
66       - chrome
67       - web
68     networks:
69       - test
70     command: >
71       /bin/sh -c "
72         echo Waiting for db start...;
73         while ! nc -z postgres10 5432;
74         do
75           sleep 1;
76         done;
77         echo Connected!;
78       "
79
80   start_dependencies_acceptance_install_sqlite:
81     image: alpine:3.8
82     links:
83       - chrome
84       - web
85     command: >
86       /bin/sh -c "
87         sleep 1;
88       "
89
90   start_dependencies_functional_mariadb10:
91     image: alpine:3.8
92     links:
93       - mariadb10
94       - redis4
95       - memcached1-5
96     networks:
97       - test
98     command: >
99       /bin/sh -c "
100         echo Waiting for db start...;
101         while ! nc -z mariadb10 3306;
102         do
103           sleep 1;
104         done;
105         echo Connected!;
106       "
107
108   start_dependencies_functional_postgres10:
109     image: alpine:3.8
110     links:
111       - postgres10
112       - redis4
113       - memcached1-5
114     networks:
115       - test
116     command: >
117       /bin/sh -c "
118         echo Waiting for db start...;
119         while ! nc -z postgres10 5432;
120         do
121           sleep 1;
122         done;
123         echo Connected!;
124       "
125   start_dependencies_functional_sqlite:
126     image: alpine:3.8
127     links:
128       - redis4
129       - memcached1-5
130     networks:
131       - test
132     command: >
133       /bin/sh -c "
134         sleep 1;
135       "
136
137   start_dependencies_unit:
138     image: alpine:3.8
139     links:
140       - redis4
141     command: >
142       /bin/sh -c "
143         sleep 1;
144       "
145
146 networks:
147   test:
148     external:
149       name: ${BAMBOO_COMPOSE_PROJECT_NAME}_test
150
151 volumes:
152   bamboo-data:
153     external:
154       name: ${BAMBOO_COMPOSE_PROJECT_NAME}_bamboo-data