6 source /var/onap/functions
8 appc_src_folder=$git_src_folder/appc
10 # clone_all_appc_repos() - Function that clones APPC source repo.
11 function clone_all_appc_repos {
12 clone_repo appc $appc_src_folder
13 clone_repo appc/deployment $appc_src_folder/deployment
16 # compile_all_appc_repos() - Function that compiles APPC source repo.
17 function compile_all_appc_repos {
18 compile_src $appc_src_folder
19 compile_src $appc_src_folder/deployment
22 # _build_appc_images() - Function that creates APPC images from source code.
23 function _build_appc_images {
25 build_docker_image $appc_src_folder/deployment/installation/appc docker
28 # get_appc_images() - Function that gets or build APPC docker images
29 function get_appc_images {
30 if [[ "$build_image" == "True" ]]; then
33 pull_openecomp_image appc-image openecomp/appc-image:latest
34 pull_openecomp_image dgbuilder-sdnc-image openecomp/dgbuilder-sdnc-image:latest
38 # install_appc() - Function that clones and installs the APPC services from source code
39 function install_appc {
40 pushd $appc_src_folder/deployment/docker-compose
41 install_docker_compose
42 /opt/docker/docker-compose up -d
46 # init_appc() - Function that initialize APPC services
48 if [[ "$clone_repo" == "True" ]]; then
50 if [[ "$compile_repo" == "True" ]]; then
51 compile_all_appc_repos
55 if [[ "$skip_get_images" == "False" ]]; then
57 if [[ "$skip_install" == "False" ]]; then