Skip to content

Commit 337146d

Browse files
authored
Do not restart breeze containers after restart (#26647)
In order to avoid initialisation of database and other integrations when you are entering/leaving breeze, those are started when breeze starts but not stopped when you leave. Then stopping such running auxiliary containers should be done with `breeze stop` after you are done. However those who do not do it, and will restart their machine will find that the containers get restarted. This has been added as part of #13446 where health-checks are added. However "always" was not a good choice. It should have been "on-failure"
1 parent 3b61769 commit 337146d

11 files changed

+11
-11
lines changed

scripts/ci/docker-compose/backend-mssql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
timeout: 10s
4141
retries: 10
4242
start_period: 2m
43-
restart: always
43+
restart: "on-failure"
4444
mssqlsetup:
4545
image: mcr.microsoft.com/mssql/server:${MSSQL_VERSION}
4646
depends_on:

scripts/ci/docker-compose/backend-mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ services:
4141
interval: 10s
4242
timeout: 10s
4343
retries: 5
44-
restart: always
44+
restart: "on-failure"
4545
command: ['mysqld', '--character-set-server=utf8mb4',
4646
'--collation-server=utf8mb4_unicode_ci']
4747
volumes:

scripts/ci/docker-compose/backend-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ services:
4242
interval: 10s
4343
timeout: 10s
4444
retries: 5
45-
restart: always
45+
restart: "on-failure"
4646
volumes:
4747
postgres-db-volume:

scripts/ci/docker-compose/integration-cassandra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
interval: 5s
3333
timeout: 30s
3434
retries: 50
35-
restart: always
35+
restart: "on-failure"
3636

3737
airflow:
3838
environment:

scripts/ci/docker-compose/integration-kerberos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
interval: 5s
5050
timeout: 30s
5151
retries: 50
52-
restart: always
52+
restart: "on-failure"
5353

5454
airflow:
5555
hostname: krb5-machine-example-com

scripts/ci/docker-compose/integration-mongo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
interval: 5s
2828
timeout: 30s
2929
retries: 50
30-
restart: always
30+
restart: "on-failure"
3131

3232
airflow:
3333
environment:

scripts/ci/docker-compose/integration-openldap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
interval: 5s
3434
timeout: 30s
3535
retries: 50
36-
restart: always
36+
restart: "on-failure"
3737

3838
airflow:
3939
environment:

scripts/ci/docker-compose/integration-pinot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
interval: 5s
3030
timeout: 30s
3131
retries: 50
32-
restart: always
32+
restart: "on-failure"
3333

3434
airflow:
3535
environment:

scripts/ci/docker-compose/integration-rabbitmq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
interval: 5s
2828
timeout: 30s
2929
retries: 50
30-
restart: always
30+
restart: "on-failure"
3131

3232
airflow:
3333
environment:

scripts/ci/docker-compose/integration-redis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
interval: 5s
3030
timeout: 30s
3131
retries: 50
32-
restart: always
32+
restart: "on-failure"
3333

3434
airflow:
3535
environment:

scripts/ci/docker-compose/integration-trino.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
interval: 5s
3131
timeout: 30s
3232
retries: 50
33-
restart: always
33+
restart: "on-failure"
3434

3535
ports:
3636
- "38080:8080"

0 commit comments

Comments
 (0)