summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/mr
blob: 5bd1d1aafe77de9a8a7ebca4e0fb520ebb976015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

set -o xtrace

source /var/onap/functions

src_folder=$git_src_folder/dcae/message-router

# clone_mr_repos() - Function that clones the Message Router repositories
function clone_mr_repos {
    clone_repo dcae/demo/startup/message-router $src_folder
}

# get_mr_images() - Function that retrieves the Message Router Docker images
function get_mr_images {
    pull_docker_image attos/dmaap
    pull_docker_image wurstmeister/zookeeper
}

# install_message_router() - Downloads and configure message router source code
function install_message_router {
    install_docker_compose

    pushd $src_folder
    bash deploy.sh
    popd
}

# init_mr() - Function that initialize Message Router services
function init_mr {
    if [[ "$clone_repo" == "True" ]]; then
        clone_mr_repos
    fi
    get_mr_images
    install_message_router
}