Browse Source

quick-start: Make zookeeper wait for certificates

Zookeeper docker 'latest' image was updated from 3.6.2 to 3.7.0
Some exceptions java.nio.file.NoSuchFileException about files
- /var/certs/keystores/examples_zk_1.examples_default.pem
- /var/certs/certs/cacert.pem
appeared.

This change adds a check on the last file created by tools/zk-ca.sh
before running zookeeper service.

Change-Id: I15b67977a8b14bb83474390786ab47000e7be07c
changes/10/785110/1
Guillaume Chauvel 2 weeks ago
parent
commit
269f4f381c
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      doc/source/examples/docker-compose.yaml

+ 8
- 0
doc/source/examples/docker-compose.yaml 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:


Loading…
Cancel
Save