File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 19
19
"symfony/yaml" : " ^3.3||^4.0"
20
20
},
21
21
"require-dev" : {
22
+ "codeception/codeception" : " ^4.1" ,
23
+ "codeception/module-asserts" : " ^1.2" ,
24
+ "codeception/module-db" : " ^1.0" ,
25
+ "codeception/module-phpbrowser" : " ^1.0" ,
26
+ "consolidation/robo" : " ^1.2" ,
22
27
"phpmd/phpmd" : " @stable" ,
23
28
"phpstan/phpstan" : " ^0.11" ,
24
29
"phpunit/phpunit" : " ^8.5" ,
25
- "squizlabs/php_codesniffer" : " ^3.0" ,
26
- "codeception/codeception" : " ^4.1" ,
27
- "consolidation/robo" : " ^1.2"
30
+ "squizlabs/php_codesniffer" : " ^3.0"
28
31
},
29
32
"bin" : [
30
33
" bin/ece-docker"
Original file line number Diff line number Diff line change @@ -224,21 +224,30 @@ public function build(Config $config): Manager
224
224
continue ;
225
225
}
226
226
227
+ switch ($ service ) {
228
+ case self ::SERVICE_REDIS :
229
+ $ serviceConfig = [self ::SERVICE_HEALTHCHECK => [
230
+ 'test ' => 'redis-cli ping || exit 1 ' ,
231
+ 'interval ' => '30s ' ,
232
+ 'timeout ' => '30s ' ,
233
+ 'retries ' => 3
234
+ ]];
235
+ break ;
236
+
237
+ case self ::SERVICE_ELASTICSEARCH :
238
+ $ serviceConfig = !empty ($ esEnvVars ) ? ['environment ' => $ esEnvVars ] : [];
239
+ break ;
240
+
241
+ default :
242
+ $ serviceConfig = [];
243
+ }
244
+
227
245
$ manager ->addService (
228
246
$ service ,
229
247
$ this ->serviceFactory ->create (
230
248
(string )$ service ,
231
249
(string )$ config ->getServiceVersion ($ service ),
232
- self ::SERVICE_ELASTICSEARCH === $ service && !empty ($ esEnvVars )
233
- ? ['environment ' => $ esEnvVars ]
234
- : self ::SERVICE_REDIS === $ service
235
- ? [self ::SERVICE_HEALTHCHECK => [
236
- 'test ' => 'redis-cli ping || exit 1 ' ,
237
- 'interval ' => '30s ' ,
238
- 'timeout ' => '30s ' ,
239
- 'retries ' => 3
240
- ] ]
241
- : []
250
+ $ serviceConfig
242
251
),
243
252
[self ::NETWORK_MAGENTO ],
244
253
[]
You can’t perform that action at this time.
0 commit comments