Skip to content
Snippets Groups Projects
Commit fc948115 authored by calvinosanch's avatar calvinosanch
Browse files

BUG 703 fix - Check if zookeeper is initialized before kafka


Change-Id: I93810203efd9de329f1ecbdd9970ef3cf266c16b
Signed-off-by: default avatarcalvinosanch <guillermo.calvinosanchez@altran.com>
parent 7e29d16a
No related branches found
No related tags found
No related merge requests found
##
# Copyright 2019 ETSI
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
##
########################################################################
version: '3'
volumes:
ro:
......@@ -39,6 +57,11 @@ services:
KAFKA_LOG_RETENTION_HOURS: 24
volumes:
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0
interval: 20s
timeout: 10s
retries: 5
#depends_on:
# - zookeeper
mongo:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment