Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 5 | source /var/onap/functions |
| 6 | source /var/onap/asserts |
| 7 | |
| 8 | src_folder=$git_src_folder/dcae/message-router |
| 9 | |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 10 | # install_message_router() - Downloads and configure message router source code |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 11 | function _install_message_router { |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 12 | clone_repo dcae/demo/startup/message-router $src_folder |
| 13 | pushd $src_folder |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 14 | pull_docker_image attos/dmaap |
| 15 | pull_docker_image wurstmeister/zookeeper |
| 16 | install_docker_compose |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 17 | bash deploy.sh |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 18 | asserts_image dockerfiles_kafka |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 19 | popd |
| 20 | } |
| 21 | |
| 22 | # init_mr() - Function that initialize Message Router services |
| 23 | function init_mr { |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 24 | _install_message_router |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 25 | } |