[TASK] bamboo: db dependency loop needs break condition
[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 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 database start
65 COUNT=0
66 while ! nc -z mariadb10 3306; do
67 if [ "$${COUNT}" -ge "60" ]; then
68 echo Database did not come up
69 exit 1
70 fi
71 let "COUNT++"
72 sleep 1
73 done
74 echo Database is up
75 "
76
77 start_dependencies_acceptance_install_postgres10:
78 image: alpine:3.8
79 links:
80 - postgres10
81 - chrome
82 - web
83 networks:
84 - test
85 command: >
86 /bin/sh -c "
87 echo Waiting for database start
88 COUNT=0
89 while ! nc -z postgres10 5432; do
90 if [ "$${COUNT}" -ge "60" ]; then
91 echo Database did not come up
92 exit 1
93 fi
94 let "COUNT++"
95 sleep 1
96 done
97 echo Database is up
98 "
99
100 start_dependencies_acceptance_install_sqlite:
101 image: alpine:3.8
102 links:
103 - chrome
104 - web
105 command: >
106 /bin/sh -c "
107 sleep 1;
108 "
109
110 start_dependencies_acceptance_backend_mariadb10:
111 image: alpine:3.8
112 links:
113 - mariadb10
114 - chrome
115 - web
116 networks:
117 - test
118 command: >
119 /bin/sh -c "
120 echo Waiting for database start
121 COUNT=0
122 while ! nc -z mariadb10 3306; do
123 if [ "$${COUNT}" -ge "60" ]; then
124 echo Database did not come up
125 exit 1
126 fi
127 let "COUNT++"
128 sleep 1
129 done
130 echo Database is up
131 "
132
133 start_dependencies_functional_mariadb10:
134 image: alpine:3.8
135 links:
136 - mariadb10
137 - redis4
138 - memcached1-5
139 networks:
140 - test
141 command: >
142 /bin/sh -c "
143 echo Waiting for database start
144 COUNT=0
145 while ! nc -z mariadb10 3306; do
146 if [ "$${COUNT}" -ge "60" ]; then
147 echo Database did not come up
148 exit 1
149 fi
150 let "COUNT++"
151 sleep 1
152 done
153 echo Database is up
154 "
155
156 start_dependencies_functional_mssql:
157 image: alpine:3.8
158 links:
159 - mssql2017cu9
160 - redis4
161 - memcached1-5
162 networks:
163 - test
164 command: >
165 /bin/sh -c "
166 echo Waiting for database start
167 COUNT=0
168 while ! nc -z mssql2017cu9 1433; do
169 if [ "$${COUNT}" -ge "60" ]; then
170 echo Database did not come up
171 exit 1
172 fi
173 let "COUNT++"
174 sleep 1
175 done
176 echo Database is up
177 "
178
179 start_dependencies_functional_postgres10:
180 image: alpine:3.8
181 links:
182 - postgres10
183 - redis4
184 - memcached1-5
185 networks:
186 - test
187 command: >
188 /bin/sh -c "
189 echo Waiting for database start
190 COUNT=0
191 while ! nc -z postgres10 5432; do
192 if [ "$${COUNT}" -ge "60" ]; then
193 echo Database did not come up
194 exit 1
195 fi
196 let "COUNT++"
197 sleep 1
198 done
199 echo Database is up
200 "
201 start_dependencies_functional_sqlite:
202 image: alpine:3.8
203 links:
204 - redis4
205 - memcached1-5
206 networks:
207 - test
208 command: >
209 /bin/sh -c "
210 sleep 1;
211 "
212
213 networks:
214 test:
215 external:
216 name: ${BAMBOO_COMPOSE_PROJECT_NAME}_test
217
218 volumes:
219 bamboo-data:
220 external:
221 name: ${BAMBOO_COMPOSE_PROJECT_NAME}_bamboo-data