blob: bba748618d4bda95774e0c872bb453dc492a52e3 [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 Moralesf8730f52018-03-02 13:24:33 -080015 pushd ${src_folders[mr]}
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 Moralesf8730f52018-03-02 13:24:33 -080023 clone_repo dcae/demo/startup/message-router ${src_folders[mr]}
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}