Merge "quick-start: Make zookeeper wait for certificates"

This commit is contained in:
Zuul 2021-04-07 14:51:21 +00:00 committed by Gerrit Code Review
commit 8573074b0f
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ services:
volumes:
- "certs:/var/certs:z"
- "./zoo.cfg:/conf/zoo.cfg:z"
# introduced for 3.7.0: zookeeper shall wait for certificates to be available
# examples_zk_1.examples_default.pem is the last file created by ./tools/zk-ca.sh
command: |
/bin/sh -c '\
while [ ! -f /var/certs/keystores/examples_zk_1.examples_default.pem ] ; do \
sleep 1; \
done; \
zkServer.sh start-foreground'
mysql:
image: mariadb
environment: