Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
| 5 | source /var/onap/sdnc |
| 6 | |
| 7 | # install_appc() - Function that clones and installs the APPC services from source code |
| 8 | function install_appc { |
| 9 | local src_folder=/opt/appc |
| 10 | clone_repo appc/deployment $src_folder |
| 11 | if [[ "$build_image" == "True" ]]; then |
| 12 | build_sdnc_images |
| 13 | build_docker_image $src_folder/deployment/installation/appc docker |
| 14 | else |
| 15 | pull_openecomp_image appc-image openecomp/appc-image:latest |
| 16 | pull_openecomp_image dgbuilder-sdnc-image openecomp/dgbuilder-sdnc-image:latest |
| 17 | fi |
| 18 | pushd $src_folder |
| 19 | install_docker_compose |
| 20 | /opt/docker/docker-compose up -d |
| 21 | popd |
| 22 | } |
| 23 | |
| 24 | # init_appc() - Function that initialize APPC services |
| 25 | function init_appc { |
| 26 | install_appc |
| 27 | } |