mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 06:37:46 +00:00
Nicer sleep commands for mysql-client container
This commit is contained in:
parent
8548e9e347
commit
f5c16f81b0
@ -354,7 +354,7 @@ spec:
|
||||
- name: mysql
|
||||
image: {{ DOCKER_REGISTRY }}{{ DOCKER_IMAGE_MYSQL }}
|
||||
command: ["sh", "-e", "-c"]
|
||||
args: ["while true; do echo 'ready'; sleep 10; done"]
|
||||
args: ["echo 'ready'; while true; do sleep 60; done"]
|
||||
{% if ACTIVATE_SMTP %}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
|
@ -30,8 +30,9 @@ services:
|
||||
{% endif %}
|
||||
mysql-client:
|
||||
image: {{ DOCKER_REGISTRY }}{{ DOCKER_IMAGE_MYSQL }}
|
||||
command: sh
|
||||
restart: "no"
|
||||
entrypoint: ["sh", "-e", "-c"]
|
||||
command: ["echo 'ready'; while true; do sleep 60; done"]
|
||||
restart: unless-stopped
|
||||
{% if ACTIVATE_MYSQL%}depends_on:
|
||||
- mysql{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user