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 | |
| 5 | vvp_src_folder=$git_src_folder/vvp |
Victor Morales | f1f1ba5 | 2017-11-20 16:38:28 -0800 | [diff] [blame] | 6 | vvp_repos=("vvp/ansible-ice-bootstrap" "vvp/cms" "vvp/devkit" \ |
| 7 | "vvp/documentation" "vvp/engagementmgr" "vvp/gitlab" "vvp/image-scanner" \ |
| 8 | "vvp/jenkins" "vvp/portal" "vvp/postgresql" "vvp/test-engine" \ |
| 9 | "vvp/validation-scripts") |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 10 | |
| 11 | # _build_vvp_images() - Builds VNFSDK images from source code |
| 12 | function _build_vvp_images { |
| 13 | echo "pass" |
| 14 | } |
| 15 | |
| 16 | # get_vvp_images - Function that clones vvp Docker images |
| 17 | function get_vvp_images { |
| 18 | if [[ "$build_image" == "True" ]]; then |
| 19 | _build_vvp_images |
| 20 | else |
| 21 | pull_docker_image refrepo:1.0-STAGING-latest |
| 22 | pull_docker_image refrepo:latest |
| 23 | fi |
| 24 | } |
| 25 | |
| 26 | # install_vvp - Function that installs vvp Docker images |
| 27 | function install_vvp { |
| 28 | echo "pass" |
| 29 | } |
| 30 | |
| 31 | # init_vvp() - Init VNFSDK services |
| 32 | function init_vvp { |
| 33 | if [[ "$clone_repo" == "True" ]]; then |
Victor Morales | f1f1ba5 | 2017-11-20 16:38:28 -0800 | [diff] [blame] | 34 | clone_repos "vvp" |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 35 | if [[ "$compile_repo" == "True" ]]; then |
Victor Morales | f1f1ba5 | 2017-11-20 16:38:28 -0800 | [diff] [blame] | 36 | compile_repos "vvp" |
Victor Morales | d3cbcf2 | 2017-10-25 16:01:58 -0700 | [diff] [blame] | 37 | fi |
| 38 | fi |
| 39 | |
| 40 | if [[ "$skip_get_images" == "False" ]]; then |
| 41 | get_vvp_images |
| 42 | if [[ "$skip_install" == "False" ]]; then |
| 43 | install_vvp |
| 44 | fi |
| 45 | fi |
| 46 | } |