aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/functions
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-16 10:50:28 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-16 10:50:28 -0800
commit88d193e157c75cc544b92401aaac5ce6caaa3d8a (patch)
tree669ee7aa26db7a368f2c01eb5e1b33adb33bee86 /bootstrap/vagrant-onap/lib/functions
parenta1ef1718517a0b0ea19c6ffbaa1fb4027a6431a1 (diff)
Implement steps for Multicloud Images
It was implemented the steps required for retrieving or building docker images as well as their execution. Change-Id: I20f79c5375377a9406f92f9e3e32a2cbec23a4f9 Signed-off-by: Victor Morales <victor.morales@intel.com> Depends-On: Idc876574ceee39b7cf389978d6a33eb7c66291a6 Issue-Id: MULTICLOUD-53
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-xbootstrap/vagrant-onap/lib/functions12
1 files changed, 11 insertions, 1 deletions
diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions
index 25fbba3e9..c4ed3c85f 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -178,7 +178,7 @@ function _install_pip {
fi
}
-# install_python_package() - Install a python module
+# install_python_package() - Install python modules
function install_python_package {
local python_packages=$@
@@ -186,6 +186,16 @@ function install_python_package {
pip install $python_packages
}
+# install_python_requirements() - Install a list of python modules defined in requirement.txt file
+function install_python_requirements {
+ local python_project_path=$1
+
+ _install_pip
+ pushd $python_project_path
+ pip install -r requirements.txt
+ popd
+}
+
# install_docker() - Download and install docker-engine
function install_docker {
if is_package_installed docker-ce; then