Add the option to clone the source code repo 99/8099/6
authorIdan Amit <ia096e@intl.att.com>
Sun, 20 Aug 2017 05:58:14 +0000 (08:58 +0300)
committerVictor Morales <victor.morales@intel.com>
Tue, 29 Aug 2017 15:57:51 +0000 (10:57 -0500)
Change-Id: Iba5f7e5a1c6586a1a8c158854f95904944ba62c0
Issue-Id: INT-101
Signed-off-by: Idan Amit <ia096e@intl.att.com>
Co-Authored-By: Victor Morales <victor.morales@intel.com>
bootstrap/vagrant-onap/Vagrantfile
bootstrap/vagrant-onap/lib/aai
bootstrap/vagrant-onap/lib/appc
bootstrap/vagrant-onap/lib/asdc
bootstrap/vagrant-onap/lib/dcae
bootstrap/vagrant-onap/lib/mr
bootstrap/vagrant-onap/lib/mso
bootstrap/vagrant-onap/lib/policy
bootstrap/vagrant-onap/lib/sdnc
bootstrap/vagrant-onap/lib/vfc
bootstrap/vagrant-onap/lib/vid

index 21766fe..e39ccbd 100644 (file)
@@ -27,6 +27,7 @@ conf = {
   'build_image'         => 'True',
   'pull_docker_image'   => 'True',
   'odl_version'         => '0.5.3-Boron-SR3',
+  'clone_repo'          => 'True',
   'compile_repo'        => 'False',
   'enable_oparent'      => 'True'
 }
index 2b7f981..7d87870 100755 (executable)
@@ -179,8 +179,12 @@ function init_aai {
     install_hadoop
     install_haproxy
 
-    clone_all_aai_repos
-    compile_aai_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_aai_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_aai_repos
+        fi
+    fi
 
     setup_titan
     #start_aai_microservices
index a0959c6..33980ae 100755 (executable)
@@ -45,9 +45,11 @@ function install_appc {
 
 # init_appc() - Function that initialize APPC services
 function init_appc {
-    clone_all_appc_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_appc_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_appc_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_appc_repos
+        fi
     fi
 
     get_appc_images
index bbd3d3b..fb7b40b 100755 (executable)
@@ -71,11 +71,6 @@ function install_sdc {
     local RELEASE=$docker_version
     NEXUS_DOCKER_PORT=$(echo $nexus_docker_repo | cut -d':' -f2)
 
-    clone_all_sdc_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_sdc_repos
-    fi
-
     if [[ "$build_image" == "True" ]]; then
         compile_src $src_folder
         build_docker_image $src_folder/sdc-os-chef docker
@@ -106,5 +101,11 @@ function init_asdc {
     mount_external_partition
     init_data_folders
     setup_docker_aliases
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_sdc_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_sdc_repos
+        fi
+    fi
     install_sdc
 }
index dce55ae..43da9f5 100755 (executable)
@@ -120,9 +120,11 @@ function install_dcae {
 
 # init_dcae() - Function that initialize DCAE Controller services
 function init_dcae {
-    clone_all_dcae_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_dcae_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_dcae_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_dcae_repos
+        fi
     fi
 
     _create_config_file
index 76b27b1..5bd1d1a 100755 (executable)
@@ -28,7 +28,9 @@ function install_message_router {
 
 # init_mr() - Function that initialize Message Router services
 function init_mr {
-    clone_mr_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_mr_repos
+    fi
     get_mr_images
     install_message_router
 }
index 4f88e90..4b20906 100755 (executable)
@@ -101,9 +101,11 @@ EOF
 
 # init_mso() - Function that initialize MSO services
 function init_mso {
-    clone_all_mso_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_mso_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_mso_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_mso_repos
+        fi
     fi
 
     install_mso
index c117c41..5b3e581 100755 (executable)
@@ -58,9 +58,11 @@ function install_policy {
 
 # init_policy() - Function that initialize Policy services
 function init_policy {
-    clone_all_policy_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_policy_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_policy_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_policy_repos
+        fi
     fi
 
     get_policy_images
index 9a3f9b0..c7c2745 100755 (executable)
@@ -63,9 +63,11 @@ function install_sdnc {
 # init_sdnc() - Function that initialize SDNC services
 function init_sdnc {
     start_ODL
-    clone_all_sdnc_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_sdnc_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_sdnc_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_sdnc_repos
+        fi
     fi
     get_sdnc_images
     install_sdnc
index 13e3015..9c232be 100755 (executable)
@@ -52,9 +52,11 @@ function install_vfc {
 function init_vfc {
     install_package libmysqlclient-dev
 
-    clone_all_vfc_repos
-    if [[ "$compile_repo" == "False" ]]; then
-        compile_all_vfc_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_vfc_repos
+        if [[ "$compile_repo" == "False" ]]; then
+            compile_all_vfc_repos
+        fi
     fi
 
     install_vfc
index fc622c3..55f399a 100755 (executable)
@@ -49,9 +49,11 @@ function install_vid {
 
 # init_vid() - Function that initialize Vid services
 function init_vid {
-    clone_all_vid_repos
-    if [[ "$compile_repo" == "True" ]]; then
-        compile_all_vid_repos
+    if [[ "$clone_repo" == "True" ]]; then
+        clone_all_vid_repos
+        if [[ "$compile_repo" == "True" ]]; then
+            compile_all_vid_repos
+        fi
     fi
 
     get_vid_images