Skip to content

Commit

Permalink
Nicer sleep commands for mysql-client container
Browse files Browse the repository at this point in the history
  • Loading branch information
regisb committed Sep 3, 2019
1 parent 8548e9e commit f5c16f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutor/templates/k8s/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions tutor/templates/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit f5c16f8

Please sign in to comment.