Add the option to clone the source code repo
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>
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index 21766fe..e39ccbd 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -27,6 +27,7 @@
'build_image' => 'True',
'pull_docker_image' => 'True',
'odl_version' => '0.5.3-Boron-SR3',
+ 'clone_repo' => 'True',
'compile_repo' => 'False',
'enable_oparent' => 'True'
}
diff --git a/bootstrap/vagrant-onap/lib/aai b/bootstrap/vagrant-onap/lib/aai
index 2b7f981..7d87870 100755
--- a/bootstrap/vagrant-onap/lib/aai
+++ b/bootstrap/vagrant-onap/lib/aai
@@ -179,8 +179,12 @@
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
diff --git a/bootstrap/vagrant-onap/lib/appc b/bootstrap/vagrant-onap/lib/appc
index a0959c6..33980ae 100755
--- a/bootstrap/vagrant-onap/lib/appc
+++ b/bootstrap/vagrant-onap/lib/appc
@@ -45,9 +45,11 @@
# 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
diff --git a/bootstrap/vagrant-onap/lib/asdc b/bootstrap/vagrant-onap/lib/asdc
index bbd3d3b..fb7b40b 100755
--- a/bootstrap/vagrant-onap/lib/asdc
+++ b/bootstrap/vagrant-onap/lib/asdc
@@ -71,11 +71,6 @@
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 @@
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
}
diff --git a/bootstrap/vagrant-onap/lib/dcae b/bootstrap/vagrant-onap/lib/dcae
index dce55ae..43da9f5 100755
--- a/bootstrap/vagrant-onap/lib/dcae
+++ b/bootstrap/vagrant-onap/lib/dcae
@@ -120,9 +120,11 @@
# 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
diff --git a/bootstrap/vagrant-onap/lib/mr b/bootstrap/vagrant-onap/lib/mr
index 76b27b1..5bd1d1a 100755
--- a/bootstrap/vagrant-onap/lib/mr
+++ b/bootstrap/vagrant-onap/lib/mr
@@ -28,7 +28,9 @@
# 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
}
diff --git a/bootstrap/vagrant-onap/lib/mso b/bootstrap/vagrant-onap/lib/mso
index 4f88e90..4b20906 100755
--- a/bootstrap/vagrant-onap/lib/mso
+++ b/bootstrap/vagrant-onap/lib/mso
@@ -101,9 +101,11 @@
# 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
diff --git a/bootstrap/vagrant-onap/lib/policy b/bootstrap/vagrant-onap/lib/policy
index c117c41..5b3e581 100755
--- a/bootstrap/vagrant-onap/lib/policy
+++ b/bootstrap/vagrant-onap/lib/policy
@@ -58,9 +58,11 @@
# 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
diff --git a/bootstrap/vagrant-onap/lib/sdnc b/bootstrap/vagrant-onap/lib/sdnc
index 9a3f9b0..c7c2745 100755
--- a/bootstrap/vagrant-onap/lib/sdnc
+++ b/bootstrap/vagrant-onap/lib/sdnc
@@ -63,9 +63,11 @@
# 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
diff --git a/bootstrap/vagrant-onap/lib/vfc b/bootstrap/vagrant-onap/lib/vfc
index 13e3015..9c232be 100755
--- a/bootstrap/vagrant-onap/lib/vfc
+++ b/bootstrap/vagrant-onap/lib/vfc
@@ -52,9 +52,11 @@
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
diff --git a/bootstrap/vagrant-onap/lib/vid b/bootstrap/vagrant-onap/lib/vid
index fc622c3..55f399a 100755
--- a/bootstrap/vagrant-onap/lib/vid
+++ b/bootstrap/vagrant-onap/lib/vid
@@ -49,9 +49,11 @@
# 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