Skip to content

Commit b32804e

Browse files
MCLOUD-13311: DB health check backward compatibility
1 parent bb4ec97 commit b32804e

File tree

21 files changed

+24
-21
lines changed

21 files changed

+24
-21
lines changed

src/Compose/ProductionBuilder/Service/Database/Db/HealthCheck.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class HealthCheck
2020
public function getConfig(): array
2121
{
2222
return [
23-
'test' => ['CMD-SHELL', 'mariadb-admin ping -h localhost -pmagento2'],
23+
'test' => [
24+
'CMD-SHELL',
25+
'(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
26+
],
2427
'interval' => '30s',
2528
'timeout' => '30s',
2629
'retries' => 3

src/Test/Integration/_files/cloud_base/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_developer/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_developer_manual/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
healthcheck:
1818
test:
1919
- CMD-SHELL
20-
- 'mariadb-admin ping -h localhost -pmagento2'
20+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2121
interval: 30s
2222
timeout: 30s
2323
retries: 3

src/Test/Integration/_files/cloud_base_mftf/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_os_2.3_cli/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_os_2_cli/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_test/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
healthcheck:
2020
test:
2121
- CMD-SHELL
22-
- 'mariadb-admin ping -h localhost -pmagento2'
22+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2323
interval: 30s
2424
timeout: 30s
2525
retries: 3

src/Test/Integration/_files/cloud_base_with_custom_zookeeper_image/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
healthcheck:
1818
test:
1919
- CMD-SHELL
20-
- 'mariadb-admin ping -h localhost -pmagento2'
20+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2121
interval: 30s
2222
timeout: 30s
2323
retries: 3

src/Test/Integration/_files/cloud_base_with_custom_zookeeper_image_and_version/docker-compose.exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
healthcheck:
1818
test:
1919
- CMD-SHELL
20-
- 'mariadb-admin ping -h localhost -pmagento2'
20+
- '(mariadb-admin ping -h localhost -pmagento2 || mysqladmin ping -h localhost -pmagento2)'
2121
interval: 30s
2222
timeout: 30s
2323
retries: 3

0 commit comments

Comments
 (0)