Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 3 | source /var/onap/functions |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 4 | |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 5 | # get_mr_images() - Function that retrieves the Message Router Docker images |
| 6 | function get_mr_images { |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 7 | pull_docker_image attos/dmaap |
| 8 | pull_docker_image wurstmeister/zookeeper |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | # install_message_router() - Downloads and configure message router source code |
| 12 | function install_message_router { |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 13 | install_docker_compose |
Victor Morales | f0e6239 | 2017-08-17 14:07:51 -0500 | [diff] [blame] | 14 | |
Victor Morales | f8730f5 | 2018-03-02 13:24:33 -0800 | [diff] [blame] | 15 | pushd ${src_folders[mr]} |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 16 | bash deploy.sh |
| 17 | popd |
| 18 | } |
| 19 | |
| 20 | # init_mr() - Function that initialize Message Router services |
| 21 | function init_mr { |
Idan Amit | 1690e08 | 2017-08-20 08:58:14 +0300 | [diff] [blame] | 22 | if [[ "$clone_repo" == "True" ]]; then |
Victor Morales | f8730f5 | 2018-03-02 13:24:33 -0800 | [diff] [blame] | 23 | clone_repo dcae/demo/startup/message-router ${src_folders[mr]} |
Idan Amit | 1690e08 | 2017-08-20 08:58:14 +0300 | [diff] [blame] | 24 | fi |
Victor Morales | 6a91997 | 2017-09-28 18:29:54 -0700 | [diff] [blame] | 25 | 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 Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 31 | } |