3 source /var/onap/functions
5 multicloud_src_folder=$git_src_folder/multicloud
6 multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \
7 "multicloud/openstack/vmware" "multicloud/openstack/windriver" \
9 openstack_release="newton"
11 # clone_multicloud_repos() - Function that clones the Multi Cloud repositories
12 function clone_multicloud_repos {
13 for repo in ${multicloud_repos[@]}; do
14 clone_repo $repo $multicloud_src_folder${repo#*multicloud}
18 # compile_multicloud_repos() -
19 function compile_multicloud_repos {
20 for repo in ${multicloud_repos[@]}; do
21 compile_src $multicloud_src_folder${repo#*multicloud}
25 function _build_images {
27 install_python_requirements $multicloud_src_folder/openstack/$openstack_release
28 pushd $multicloud_src_folder/openstack/$openstack_release
33 # get_multicloud_images() -
34 function get_multicloud_images {
35 if [[ "$build_image" == "True" ]]; then
38 pull_onap_image multicloud/openstack-$openstack_release
42 # install_multicloud() -
43 function install_multicloud {
44 pushd $multicloud_src_folder/openstack/$openstack_release
45 /opt/docker/docker-compose up -d
49 # init_multicloud() - Function that initialize Multi Cloud services
50 function init_multicloud {
51 if [[ "$clone_repo" == "True" ]]; then
52 clone_multicloud_repos
53 if [[ "$compile_repo" == "True" ]]; then
54 compile_multicloud_repos
57 if [[ "$skip_get_images" == "False" ]]; then
59 if [[ "$skip_install" == "False" ]]; then