Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 3 | source /var/onap/functions |
| 4 | |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 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 |
Victor Morales | f1f1ba5 | 2017-11-20 16:38:28 -0800 | [diff] [blame] | 28 | clone_repos "vvp" |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 29 | if [[ "$compile_repo" == "True" ]]; then |
Victor Morales | f1f1ba5 | 2017-11-20 16:38:28 -0800 | [diff] [blame] | 30 | compile_repos "vvp" |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 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 | } |