Merge "Change from using chef to local config files"
[integration.git] / bootstrap / vagrant-onap / lib / vvp
1 #!/bin/bash
2
3 source /var/onap/functions
4
5 # _build_vvp_images() - Builds VNFSDK images from source code
6 function _build_vvp_images {
7     echo "pass"
8 }
9
10 # get_vvp_images - Function that clones vvp Docker images
11 function get_vvp_images {
12     if [[ "$build_image" == "True" ]]; then
13         _build_vvp_images
14     else
15         pull_docker_image refrepo:1.0-STAGING-latest
16         pull_docker_image refrepo:latest
17     fi
18 }
19
20 # install_vvp - Function that installs vvp Docker images
21 function install_vvp {
22     echo "pass"
23 }
24
25 # init_vvp() - Init VNFSDK services
26 function init_vvp {
27     if [[ "$clone_repo" == "True" ]]; then
28         clone_repos "vvp"
29         if [[ "$compile_repo" == "True" ]]; then
30             compile_repos "vvp"
31         fi
32     fi
33
34     if [[ "$skip_get_images" == "False" ]]; then
35         get_vvp_images
36         if [[ "$skip_install" == "False" ]]; then
37             install_vvp
38         fi
39     fi
40 }