blob: 0dc708bda9b35649cec7032ec08dc4533979982c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2017-2018
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################
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
}
|