aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/README.md4
-rw-r--r--vagrant/Vagrantfile13
-rwxr-xr-xvagrant/setup_policy.sh27
3 files changed, 36 insertions, 8 deletions
diff --git a/vagrant/README.md b/vagrant/README.md
index 33ad8306..837d62ce 100644
--- a/vagrant/README.md
+++ b/vagrant/README.md
@@ -1,3 +1,7 @@
+Copyright 2018 AT&T Intellectual Property. All rights reserved.
+This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
+Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
+
This directory is to build & setup policy by vagrant. It is verified to work in
Ubuntu 16.04 64bit.
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 73d4ba3c..35c022b0 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -1,3 +1,16 @@
+# 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.
Vagrant.require_version ">= 1.8.6"
Vagrant.configure("2") do |config|
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