You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/03 12:25:45 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #13446: Add docker health check to integrations

mik-laj commented on a change in pull request #13446:
URL: https://github.com/apache/airflow/pull/13446#discussion_r550999032



##########
File path: scripts/ci/docker-compose/backend-mysql.yml
##########
@@ -36,6 +38,12 @@ services:
       - ../mysql/conf.d:/etc/mysql/conf.d:ro
       - /dev/urandom:/dev/random   # Required to get non-blocking entropy source
       - mysql-db-volume:/var/lib/mysql
+    healthcheck:
+      test: ["CMD", "mysql", "-h", "localhost", "-P", "3306", "-u", "root", "-e", "SELECT 1"]
+      interval: 10s
+      timeout: 10s
+      retries: 120
+

Review comment:
       Good point. I missed it. Added.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org