6
0
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:
Régis Behmo 2019-09-03 09:34:44 +02:00
parent 8548e9e347
commit f5c16f81b0
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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 %}