aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/multicloud
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-16 10:50:28 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-16 10:50:28 -0800
commit88d193e157c75cc544b92401aaac5ce6caaa3d8a (patch)
tree669ee7aa26db7a368f2c01eb5e1b33adb33bee86 /bootstrap/vagrant-onap/lib/multicloud
parenta1ef1718517a0b0ea19c6ffbaa1fb4027a6431a1 (diff)
Implement steps for Multicloud Images
It was implemented the steps required for retrieving or building docker images as well as their execution. Change-Id: I20f79c5375377a9406f92f9e3e32a2cbec23a4f9 Signed-off-by: Victor Morales <victor.morales@intel.com> Depends-On: Idc876574ceee39b7cf389978d6a33eb7c66291a6 Issue-Id: MULTICLOUD-53
Diffstat (limited to 'bootstrap/vagrant-onap/lib/multicloud')
-rwxr-xr-xbootstrap/vagrant-onap/lib/multicloud19
1 files changed, 17 insertions, 2 deletions
diff --git a/bootstrap/vagrant-onap/lib/multicloud b/bootstrap/vagrant-onap/lib/multicloud
index 05195877b..2f9e5d8d8 100755
--- a/bootstrap/vagrant-onap/lib/multicloud
+++ b/bootstrap/vagrant-onap/lib/multicloud
@@ -6,6 +6,7 @@ multicloud_src_folder=$git_src_folder/multicloud
multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \
"multicloud/openstack/vmware" "multicloud/openstack/windriver" \
"multicloud/azure")
+openstack_release="newton"
# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
function clone_multicloud_repos {
@@ -21,14 +22,28 @@ function compile_multicloud_repos {
done
}
+function _build_images {
+ install_docker
+ install_python_requirements $multicloud_src_folder/openstack/$openstack_release
+ pushd $multicloud_src_folder/openstack/$openstack_release
+ bash build_image.sh
+ popd
+}
+
# get_multicloud_images() -
function get_multicloud_images {
- echo "pass"
+ if [[ "$build_image" == "True" ]]; then
+ _build_images
+ else
+ pull_onap_image multicloud/openstack-$openstack_release
+ fi
}
# install_multicloud() -
function install_multicloud {
- echo "pass"
+ pushd $multicloud_src_folder/openstack/$openstack_release
+ /opt/docker/docker-compose up -d
+ popd
}
# init_multicloud() - Function that initialize Multi Cloud services