Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
| 5 | # install_message_router() - Downloads and configure message router source code |
| 6 | function install_message_router { |
| 7 | local src_folder=/opt/dcae/message-router |
| 8 | clone_repo dcae/demo/startup/message-router $src_folder |
| 9 | pushd $src_folder |
| 10 | is_package_installed docker-ce || install_docker |
| 11 | bash deploy.sh |
| 12 | popd |
| 13 | } |
| 14 | |
| 15 | # init_mr() - Function that initialize Message Router services |
| 16 | function init_mr { |
| 17 | install_message_router |
| 18 | } |