summaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
authorVictor Morales <v.morales@samsung.com>2020-10-01 17:24:32 -0400
committerMichael Pedersen <michaelx.pedersen@intel.com>2021-03-03 08:55:39 +0000
commit3c0a7dbb638b633855658baed38e3b871a5bcac0 (patch)
tree0e29fe03c1974b36d701bd6df5985d57e6a95a08 /deploy.sh
parent402f6f6d6ecde005eb89166957d209bcf6b5ac40 (diff)
Switch to Python Virtual Environment
Virtual Environments allow the python modules installation without affecting the hosting node. This helps to control dependencies required by this project. Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: Ib53d9dd335a4707ff863a6fd732d23d323513430 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71195 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 7b230f1..d817022 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -8,9 +8,11 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-set -o xtrace
set -o errexit
set -o nounset
+if [ "${DEBUG:-false}" == "true" ]; then
+ set -o xtrace
+fi
# Script for end to end RI-2 deployment using Infra engine and BMRA.
# Please refer to README for detailed information.
@@ -31,6 +33,11 @@ check_prerequisites
source "$CURRENTPATH/deploy.env"
# ---------------------------------------------------------------------
+# creates a virtual environment for installation of dependencies
+# ---------------------------------------------------------------------
+creates_virtualenv
+
+# ---------------------------------------------------------------------
# bootstrap install prerequisites
# ---------------------------------------------------------------------
run_playbook bootstrap