blob: f24431ee61ef3cb0b997f520834b3e99e1792a54 [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
Victor Moralesd3cbcf22017-10-25 16:01:58 -07005# _build_vvp_images() - Builds VNFSDK images from source code
6function _build_vvp_images {
7 echo "pass"
8}
9
10# get_vvp_images - Function that clones vvp Docker images
11function 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
21function install_vvp {
22 echo "pass"
23}
24
25# init_vvp() - Init VNFSDK services
26function init_vvp {
27 if [[ "$clone_repo" == "True" ]]; then
Victor Moralesf1f1ba52017-11-20 16:38:28 -080028 clone_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070029 if [[ "$compile_repo" == "True" ]]; then
Victor Moralesf1f1ba52017-11-20 16:38:28 -080030 compile_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070031 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}