blob: a924e7a80cf79cf7624612527e4354cafa9eb1d9 [file] [log] [blame]
Victor Moralesd3cbcf22017-10-25 16:01:58 -07001#!/bin/bash
2
Victor Moralesd3cbcf22017-10-25 16:01:58 -07003source /var/onap/functions
4
5vvp_src_folder=$git_src_folder/vvp
Victor Moralesf1f1ba52017-11-20 16:38:28 -08006vvp_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 Moralesd3cbcf22017-10-25 16:01:58 -070010
11# _build_vvp_images() - Builds VNFSDK images from source code
12function _build_vvp_images {
13 echo "pass"
14}
15
16# get_vvp_images - Function that clones vvp Docker images
17function 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
27function install_vvp {
28 echo "pass"
29}
30
31# init_vvp() - Init VNFSDK services
32function init_vvp {
33 if [[ "$clone_repo" == "True" ]]; then
Victor Moralesf1f1ba52017-11-20 16:38:28 -080034 clone_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070035 if [[ "$compile_repo" == "True" ]]; then
Victor Moralesf1f1ba52017-11-20 16:38:28 -080036 compile_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070037 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}