blob: 499f53f6af109a5dc52e0ffb219785caf8f874ee [file] [log] [blame]
Victor Morales89ce3212017-06-16 18:32:48 -05001#!/bin/bash
2
Victor Moralesdd074802017-07-26 16:06:35 -05003source /var/onap/functions
Victor Moralesdd074802017-07-26 16:06:35 -05004
Victor Moralesf0e62392017-08-17 14:07:51 -05005# get_mr_images() - Function that retrieves the Message Router Docker images
6function get_mr_images {
Victor Moralesdd074802017-07-26 16:06:35 -05007 pull_docker_image attos/dmaap
8 pull_docker_image wurstmeister/zookeeper
Victor Moralesf0e62392017-08-17 14:07:51 -05009}
10
11# install_message_router() - Downloads and configure message router source code
12function install_message_router {
Victor Moralesdd074802017-07-26 16:06:35 -050013 install_docker_compose
Victor Moralesf0e62392017-08-17 14:07:51 -050014
Victor Moralese173c762017-08-30 15:24:20 -050015 pushd $mr_src_folder
Victor Morales89ce3212017-06-16 18:32:48 -050016 bash deploy.sh
17 popd
18}
19
20# init_mr() - Function that initialize Message Router services
21function init_mr {
Idan Amit1690e082017-08-20 08:58:14 +030022 if [[ "$clone_repo" == "True" ]]; then
Victor Moralesf1f1ba52017-11-20 16:38:28 -080023 clone_repo dcae/demo/startup/message-router $mr_src_folder
Idan Amit1690e082017-08-20 08:58:14 +030024 fi
Victor Morales6a919972017-09-28 18:29:54 -070025 if [[ "$skip_get_images" == "False" ]]; then
26 get_mr_images
27 if [[ "$skip_install" == "False" ]]; then
28 install_message_router
29 fi
30 fi
Victor Morales89ce3212017-06-16 18:32:48 -050031}