3 source /var/onap/functions
6 # compile_all_sdnc_repos() - Function that compiles SDNC source repo.
7 function compile_all_sdnc_repos {
8 for repo in ${repos[sdnc]}; do
9 if [[ "$repo" == "sdnc/core" ]]; then
10 compile_src ${src_folders[sdnc]}/core/rootpom
12 compile_src ${src_folders[sdnc]}${repo#*sdnc}
16 # _build_sdnc_images() - Builds SDNC images from source code
17 function _build_sdnc_images {
18 local folder=${src_folders[sdnc]}/oam
22 # The OAM code depends on all the SDNC repos which should be downloaded and compiled first
23 if [[ "$compile_repo" != "True" ]]; then
26 for dirc in ubuntu sdnc admportal dgbuilder; do
27 build_docker_image $folder/installation/$dirc
31 # get_sdnc_images() - Build or retrieve necessary images
32 function get_sdnc_images {
33 if [[ "$build_image" == "True" ]]; then
36 for image in sdnc-image admportal-sdnc-image dgbuilder-sdnc-image; do
37 pull_openecomp_image $image openecomp/$image:latest
40 pull_docker_image mysql/mysql-server:5.6
43 # install_sdnc() - Download and install SDNC services from source code
44 function install_sdnc {
45 run_docker_compose ${src_folders[sdnc]}/oam/installation/src/main/yaml
48 # init_sdnc() - Function that initialize SDNC services
50 if [[ "$clone_repo" == "True" ]]; then
52 if [[ "$compile_repo" == "True" ]]; then
53 compile_all_sdnc_repos
57 if [[ "$skip_get_images" == "False" ]]; then
59 if [[ "$skip_install" == "False" ]]; then