diff options
author | Victor Morales <victor.morales@intel.com> | 2018-03-13 12:26:08 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-03-13 12:26:08 -0700 |
commit | 4d7590ed7425a94c0f87a8461548c2461d79a710 (patch) | |
tree | 083ffc33a4cd6d8eff42deeea1da0b50c49efdfe /lib/ccsdk | |
parent | ceb22354fcb078e8991a66dc9bc11dd5f21e77f4 (diff) |
Migrate vagrant-onap to devtool repo
This change covers the migration of the vagrant-onap tool's code
which was located under integration repo to devtool's repository.
The tool was renamed to avoid misunderstandings about its goals.
Change-Id: I79df8c35fccaa266a789217d441a6cf1183bd42a
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-441
Diffstat (limited to 'lib/ccsdk')
-rwxr-xr-x | lib/ccsdk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/ccsdk b/lib/ccsdk new file mode 100755 index 0000000..93ee0c8 --- /dev/null +++ b/lib/ccsdk @@ -0,0 +1,36 @@ +#!/bin/bash + +source /var/onap/functions + +# _build_ccsdk_images() - Build CCSDK Docker images from source code +function _build_ccsdk_images { + install_package unzip + compile_src ${src_folders[ccsdk]}/distribution + for image in ubuntu opendaylight odlsli dgbuilder-docker; do + build_docker_image ${src_folders[ccsdk]}/distribution/$image docker + done +} + +# get_ccsdk_images() - Get CCSDK Docker images +function get_ccsdk_images { + if [[ "$build_image" == "True" ]]; then + _build_ccsdk_images + else + for image in ubuntu odl dgbuilder; do + pull_onap_image ccsdk-$image-image + done + fi +} + +# init_ccsdk() - Function that initialize Multi Cloud services +function init_ccsdk { + if [[ "$clone_repo" == "True" ]]; then + clone_repos "ccsdk" + if [[ "$compile_repo" == "True" ]]; then + compile_repos "ccsdk" + fi + fi + if [[ "$skip_get_images" == "False" ]]; then + get_ccsdk_images + fi +} |