Browse Source

quickstart: web and others wait on mysql to start

Change-Id: Ibc004adc67add0c14a98d9de5c508f5aa131224c
tags/3.6.0
Josef Wells 2 months ago
parent
commit
f72682f477

+ 1
- 1
doc/source/admin/examples/docker-compose.yaml View File

@@ -50,7 +50,7 @@ services:
50 50
       - "sshkey:/var/ssh:z"
51 51
       - /var/lib/zuul
52 52
   web:
53
-    command: "zuul-web -d"
53
+    command: "sh -c 'ansible-playbook /var/playbooks/wait-to-start.yaml; zuul-web -d'"
54 54
     depends_on:
55 55
       - scheduler
56 56
       - mysql

+ 4
- 0
doc/source/admin/examples/playbooks/wait-to-start.yaml View File

@@ -8,6 +8,10 @@
8 8
       wait_for:
9 9
         host: gerrit
10 10
         port: 29418
11
+    - name: Wait for mysql to start
12
+      wait_for:
13
+        host: mysql
14
+        port: 3306
11 15
     - name: Wait for zuul user to be created
12 16
       uri:
13 17
         url: http://gerrit:8080/a/accounts/zuul/sshkeys

Loading…
Cancel
Save