[TASK] Activate bamboo nightly mssql functional tests
[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.1
9     environment:
10       MYSQL_ROOT_PASSWORD: funcp
11     tmpfs:
12       - /var/lib/mysql/:rw,noexec,nosuid
13     networks:
14       - test
15   postgres9-5:
16     image: postgres:9.5
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   mssql2017cu9:
27     image: microsoft/mssql-server-linux:2017-CU9
28     environment:
29       ACCEPT_EULA: Y
30       SA_PASSWORD: Test1234!
31       MSSQL_PID: Developer
32     volumes:
33       - /etc/passwd:/etc/passwd,ro
34     networks:
35       - test
36   redis4:
37     image: redis:4-alpine
38     networks:
39       - test
40   memcached1-5:
41     image: memcached:1.5-alpine
42     networks:
43       - test
44   web:
45     image: typo3gmbh/php72:latest
46     user: ${HOST_UID}
47     stop_grace_period: 1s
48     networks:
49       - test
50     volumes:
51       - bamboo-data:/srv/bamboo/xml-data/build-dir
52     command: php -n -c /etc/php/cli-no-xdebug/php.ini -S web:8000 -t /srv/bamboo/xml-data/build-dir/${bamboo_buildKey}
53
54   start_dependencies_acceptance_install_mariadb10:
55     image: alpine:3.8
56     links:
57       - mariadb10
58       - chrome
59       - web
60     networks:
61       - test
62     command: >
63       /bin/sh -c "
64         echo Waiting for db start...;
65         while ! nc -z mariadb10 3306;
66         do
67           sleep 1;
68         done;
69         echo Connected!;
70       "
71
72   start_dependencies_acceptance_install_postgres9-5:
73     image: alpine:3.8
74     links:
75       - postgres9-5
76       - chrome
77       - web
78     networks:
79       - test
80     command: >
81       /bin/sh -c "
82         echo Waiting for db start...;
83         while ! nc -z postgres9-5 5432;
84         do
85           sleep 1;
86         done;
87         echo Connected!;
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_mssql:
109     image: alpine:3.8
110     links:
111       - mssql2017cu9
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 mssql2017cu9 1433;
120         do
121           sleep 1;
122         done;
123         echo Connected!;
124       "
125
126   start_dependencies_functional_postgres9-5:
127     image: alpine:3.8
128     links:
129       - postgres9-5
130       - redis4
131       - memcached1-5
132     networks:
133       - test
134     command: >
135       /bin/sh -c "
136         echo Waiting for db start...;
137         while ! nc -z postgres9-5 5432;
138         do
139           sleep 1;
140         done;
141         echo Connected!;
142       "
143
144   start_dependencies_unit:
145     image: alpine:3.8
146     links:
147       - redis4
148       - memcached1-5
149     command: >
150       /bin/sh -c "
151         sleep 1;
152       "
153
154 networks:
155   test:
156     external:
157       name: ${BAMBOO_COMPOSE_PROJECT_NAME}_test
158
159 volumes:
160   bamboo-data:
161     external:
162       name: ${BAMBOO_COMPOSE_PROJECT_NAME}_bamboo-data