blob: 869994d2dadc77df0968c4225b63d8e2f3135b7e [file] [log] [blame]
Victor Morales89ce3212017-06-16 18:32:48 -05001#!/bin/bash
2
3set -o xtrace
4
Victor Moralesdd074802017-07-26 16:06:35 -05005source /var/onap/functions
6source /var/onap/asserts
7
8src_folder=$git_src_folder/dcae/message-router
9
Victor Morales89ce3212017-06-16 18:32:48 -050010# install_message_router() - Downloads and configure message router source code
Victor Moralesdd074802017-07-26 16:06:35 -050011function _install_message_router {
Victor Morales89ce3212017-06-16 18:32:48 -050012 clone_repo dcae/demo/startup/message-router $src_folder
13 pushd $src_folder
Victor Moralesdd074802017-07-26 16:06:35 -050014 pull_docker_image attos/dmaap
15 pull_docker_image wurstmeister/zookeeper
16 install_docker_compose
Victor Morales89ce3212017-06-16 18:32:48 -050017 bash deploy.sh
Victor Moralesdd074802017-07-26 16:06:35 -050018 asserts_image dockerfiles_kafka
Victor Morales89ce3212017-06-16 18:32:48 -050019 popd
20}
21
22# init_mr() - Function that initialize Message Router services
23function init_mr {
Victor Moralesdd074802017-07-26 16:06:35 -050024 _install_message_router
Victor Morales89ce3212017-06-16 18:32:48 -050025}