Skip to content

Commit 6d7dd12

Browse files
committed
Reduce healthcheck interval for ispyb service container
1 parent 52232a5 commit 6d7dd12

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/_bundler_container.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ jobs:
1212
services:
1313
ispyb:
1414
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0
15+
ports:
16+
- 3306:3306
1517
env:
1618
MARIADB_ROOT_PASSWORD: rootpassword
17-
options: >
19+
options: >-
1820
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
19-
ports:
20-
- 3306:3306
21+
--health-interval 1s
22+
--health-retries 60
2123
steps:
2224
- name: Checkout source
2325
uses: actions/[email protected]

.github/workflows/_bundler_docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
- 3306:3306
1414
env:
1515
MARIADB_ROOT_PASSWORD: rootpassword
16-
options: >
16+
options: >-
1717
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
18+
--health-interval 1s
19+
--health-retries 60
1820
env:
1921
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build
2022
steps:

.github/workflows/_bundler_lint.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
- 3306:3306
1414
env:
1515
MARIADB_ROOT_PASSWORD: rootpassword
16-
options: >
16+
options: >-
1717
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
18+
--health-interval 1s
19+
--health-retries 60
1820
env:
1921
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build
2022
steps:

.github/workflows/_bundler_test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
- 3306:3306
1414
env:
1515
MARIADB_ROOT_PASSWORD: rootpassword
16-
options: >
16+
options: >-
1717
--health-cmd "/usr/local/bin/healthcheck.sh --defaults-file=/ispyb/.my.cnf --connect"
18+
--health-interval 1s
19+
--health-retries 60
1820
env:
1921
DATABASE_URL: mysql://root:rootpassword@localhost/ispyb_build
2022
steps:

0 commit comments

Comments
 (0)