diff options
Diffstat (limited to 'vagrant/setup_policy.sh')
-rwxr-xr-x | vagrant/setup_policy.sh | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/vagrant/setup_policy.sh b/vagrant/setup_policy.sh index b1eda7c6..18bb3284 100755 --- a/vagrant/setup_policy.sh +++ b/vagrant/setup_policy.sh @@ -1,4 +1,17 @@ #!/usr/bin/env bash +# Copyright 2018 AT&T Intellectual Property. All rights reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -ex @@ -18,17 +31,15 @@ do mvn clean install done +for comp in policy-pe policy-drools +do + cd $HOME/$comp + sudo docker build -t onap/$comp packages/docker/target/$comp +done + cd $HOME git clone http://gerrit.onap.org/r/policy/docker cd docker -mvn prepare-package -cp -r target/policy-pe/* policy-pe/ -cp -r target/policy-drools/* policy-drools - -for comp in policy-os policy-db policy-nexus policy-base policy-pe policy-drools -do - sudo docker build -t onap/policy/$comp $HOME/docker/$comp -done cd $HOME/docker chmod +x config/drools/drools-tweaks.sh |