diff options
author | Victor Morales <victor.morales@intel.com> | 2018-03-02 13:24:33 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-03-02 13:39:06 -0800 |
commit | f8730f5f8d0e044fac2f76f465f285736446c5ca (patch) | |
tree | 54346cdc671496edd71b7d72c625a1c51c52fb50 /bootstrap/vagrant-onap/lib/policy | |
parent | eed634e3decd94328291c8623a5e7fd37075eef0 (diff) |
Remove customize src_folder variables
There were some leftovers of variables used for pointing to the
project source code folder. This variables are not used anymore.
Change-Id: I355930f8ce6acbc31a1adca61741d7221dee196c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-367
Diffstat (limited to 'bootstrap/vagrant-onap/lib/policy')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/policy | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bootstrap/vagrant-onap/lib/policy b/bootstrap/vagrant-onap/lib/policy index ad982ad95..0dac14dee 100755 --- a/bootstrap/vagrant-onap/lib/policy +++ b/bootstrap/vagrant-onap/lib/policy @@ -4,8 +4,8 @@ source /var/onap/functions # _build_policy_images() - Function that build Policy docker images from source code function _build_policy_images { - compile_src $policy_src_folder/docker - pushd $policy_src_folder/docker + compile_src ${src_folders[policy]}/docker + pushd ${src_folders[policy]}/docker install_maven mvn prepare-package cp -r target/policy-pe/* policy-pe/ @@ -20,16 +20,15 @@ function get_policy_images { if [[ "$build_image" == "True" ]]; then _build_policy_images else - pull_onap_image policy/policy-db onap/policy/policy-db:latest - pull_onap_image policy/policy-pe onap/policy/policy-pe:latest - pull_onap_image policy/policy-drools onap/policy/policy-drools:latest - pull_onap_image policy/policy-nexus onap/policy/policy-nexus:latest + for image in db pe drools nexus; do + pull_onap_image policy/policy-$image onap/policy/policy-$image:latest + done fi } # install_policy() - Function that clones and installs the Policy services from source code function install_policy { - pushd $policy_src_folder/docker + pushd ${src_folders[policy]}/docker chmod +x config/drools/drools-tweaks.sh echo $IP_ADDRESS > config/pe/ip_addr.txt install_docker_compose |