diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-08-31 17:17:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-31 17:17:33 +0000 |
commit | a3949e28940263815eb2793e7cae602d70a29290 (patch) | |
tree | a7825ec96e74be0a992265696025d2f9af8229d3 /bootstrap/vagrant-onap/lib | |
parent | 7bf702df84d8cff152e95346ce65d847286a5bf9 (diff) | |
parent | dcfa2cff85b5aa6ca22be87c22aadaff4d895e18 (diff) |
Merge "Complete assertions of UTs for Policy"
Diffstat (limited to 'bootstrap/vagrant-onap/lib')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/policy | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bootstrap/vagrant-onap/lib/policy b/bootstrap/vagrant-onap/lib/policy index 5b3e58109..ce3405614 100755 --- a/bootstrap/vagrant-onap/lib/policy +++ b/bootstrap/vagrant-onap/lib/policy @@ -4,27 +4,27 @@ set -o xtrace source /var/onap/functions -src_folder=$git_src_folder/policy +policy_src_folder=$git_src_folder/policy policy_repos=("api" "common" "docker" "drools-applications" "drools-pdp" "engine" "gui" "pap" "pdp") # clone_all_policy_repos() - Function that clones Policy source repo. function clone_all_policy_repos { for dirc in ${policy_repos[@]}; do - clone_repo policy/$dirc $src_folder/$dirc + clone_repo policy/$dirc $policy_src_folder/$dirc done } # compile_all_policy_repos() - Function that compiles Policy source repo. function compile_all_policy_repos { - for dirc in ${aai_repos[@]}; do - compile_src $src_folder/$dirc + for dirc in ${policy_repos[@]}; do + compile_src $policy_src_folder/$dirc done } # _build_policy_images() - Function that build Policy docker images from source code function _build_policy_images { - compile_src $src_folder/docker - pushd $src_folder/docker + compile_src $policy_src_folder/docker + pushd $policy_src_folder/docker install_maven mvn prepare-package cp -r target/policy-pe/* policy-pe/ @@ -48,7 +48,7 @@ function get_policy_images { # install_policy() - Function that clones and installs the Policy services from source code function install_policy { - pushd $src_folder/docker + pushd $policy_src_folder/docker chmod +x config/drools/drools-tweaks.sh echo $IP_ADDRESS > config/pe/ip_addr.txt install_docker_compose |