3 source /var/onap/functions
5 # _build_msb_images() - Function that creates Microservices Docker images from source code
6 function _build_msb_images {
7 if [[ "$compile_repo" != "True" ]]; then
11 build_docker_image ${src_folders[msb]}/apigateway/distributions/msb-apigateway/src/main/basedocker onap/msb/msb_base
12 build_docker_image ${src_folders[msb]}/apigateway/distributions/msb-apigateway/src/main/docker onap/msb/msb_apigateway
13 build_docker_image ${src_folders[msb]}/discovery/distributions/msb-discovery/src/main/docker onap/msb/msb_discovery
16 # get_msb_images() - Function that retrieves the Microservices Bus images
17 function get_msb_images {
18 pull_docker_image "consul:0.9.3"
19 if [[ "$build_image" == "True" ]]; then
23 for image in base apigateway discovery; do
24 pull_onap_image msb/msb_$image
29 # install_msb() - Downloads and configure Microservices Bus source code
30 function install_msb {
31 run_docker_image -d --net=host --name msb_consul consul:0.9.3
32 run_docker_image -d --net=host --name msb_discovery nexus3.onap.org:10001/onap/msb/msb_discovery
33 run_docker_image -d --net=host -e "ROUTE_LABELS=visualRange:1" --name msb_internal_apigateway nexus3.onap.org:10001/onap/msb/msb_apigateway
36 # init_msb() - Function that initialize Message Router services
38 if [[ "$clone_repo" == "True" ]]; then
40 if [[ "$compile_repo" == "True" ]]; then
44 if [[ "$skip_get_images" == "False" ]]; then
46 if [[ "$skip_install" == "False" ]]; then