blob: ffec841f4c8ec8cccbd20bf6b1169b399b482d4a [file] [log] [blame]
Victor Morales89ce3212017-06-16 18:32:48 -05001#!/bin/bash
2
3set -o xtrace
4
5source /var/onap/sdnc
6
7# install_appc() - Function that clones and installs the APPC services from source code
8function 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
25function init_appc {
26 install_appc
27}