Kafka image was being pulled from latest, which generated
incompatibilities with kafka clients used in modules.
It has been modified to pull from the latest supported version,
which is 1.0.2. In case there is a need to use another image tag,
it can be done through KAFKA_TAG env var.
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
if [ -z "$TO_REBUILD" ] || echo $TO_REBUILD | grep -q KAFKA ; then
sg docker -c "docker pull wurstmeister/zookeeper" || FATAL "cannot get zookeeper docker image"
- sg docker -c "docker pull wurstmeister/kafka" || FATAL "cannot get kafka docker image"
+ sg docker -c "docker pull wurstmeister/kafka:${KAFKA_TAG}" || FATAL "cannot get kafka docker image"
fi
if [ -z "$TO_REBUILD" ] || echo $TO_REBUILD | grep -q MONGO ; then
echo "export OSM_NETWORK=net${OSM_STACK_NAME}" | $WORKDIR_SUDO tee --append $OSM_DOCKER_WORK_DIR/osm_ports.sh
echo "export TAG=${OSM_DOCKER_TAG}" | $WORKDIR_SUDO tee --append $OSM_DOCKER_WORK_DIR/osm_ports.sh
echo "export DOCKER_USER=${DOCKER_USER}" | $WORKDIR_SUDO tee --append $OSM_DOCKER_WORK_DIR/osm_ports.sh
-
+ echo "export KAFKA_TAG=${KAFKA_TAG}" | $WORKDIR_SUDO tee --append $OSM_DOCKER_WORK_DIR/osm_ports.sh
+
pushd $OSM_DOCKER_WORK_DIR
OSM_WORK_DIR="/etc/osm"
OSM_DOCKER_TAG=latest
DOCKER_USER=osm
+KAFKA_TAG=2.11-1.0.2
while getopts ":hy-:b:r:k:u:R:l:p:D:o:m:H:S:s:w:t:" o; do
case "${o}" in