summaryrefslogtreecommitdiffstats
path: root/xci/infra/bifrost/scripts
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-23 10:01:47 +0000
committerMarkos Chandras <mchandras@suse.de>2018-03-23 16:02:35 +0000
commit434466fafd40485eefba1c59af105ecf793a3c25 (patch)
treecb3b3812baaa06f76a8a6b7ae1a32c3d0a374f40 /xci/infra/bifrost/scripts
parent88fc810539b0ecc6ffd74cd3de88de527221938c (diff)
xci: install: Move all pip installations to virtualenv
Now that all pip installations are managed in the same way we can move them inside a global virtual environment to further isolate the XCI artifacts from the rest of the system. Moreover, we further simplify the initial package installation to install everything at once instead of calling the package manager for every single package that we need. Change-Id: I6a170d2439fae8b0653f3141e0e8bb8ead67657e Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/infra/bifrost/scripts')
-rwxr-xr-xxci/infra/bifrost/scripts/bifrost-provision.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/xci/infra/bifrost/scripts/bifrost-provision.sh b/xci/infra/bifrost/scripts/bifrost-provision.sh
index 939acb58..eedf350f 100755
--- a/xci/infra/bifrost/scripts/bifrost-provision.sh
+++ b/xci/infra/bifrost/scripts/bifrost-provision.sh
@@ -13,7 +13,8 @@ set -o pipefail
export PYTHONUNBUFFERED=1
SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)"
BIFROST_HOME=$SCRIPT_HOME/..
-ENABLE_VENV="false"
+ENABLE_VENV="true"
+export VENV=${XCI_VENV}/bifrost
PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-3600}
# This is normally exported by XCI env but we should initialize it here
# in case we run this script on its own for debug purposes
@@ -93,7 +94,7 @@ if [[ -e ${XCI_PATH}/deployment_image.qcow2 ]]; then
fi
# Install missing dependencies
-$(which pip) install -q --user --upgrade -r "$(dirname $0)/../requirements.txt"
+pip install -q --upgrade -r "$(dirname $0)/../requirements.txt"
# Change working directory
cd $BIFROST_HOME/playbooks