aboutsummaryrefslogtreecommitdiff
path: root/docker/openstack-base
diff options
context:
space:
mode:
authorMichal Rostecki <mrostecki@mirantis.com>2015-11-18 07:22:17 +0100
committerMichal Rostecki <mrostecki@mirantis.com>2015-11-27 10:22:17 +0100
commitfebcb600f122dc644f8a05c4a7697a39e9157834 (patch)
treee7cdc8485f7613dc8c52a85d0a252c7c24a9d03e /docker/openstack-base
parent563b56126991cfc2f3378f803e071ad79aca3487 (diff)
downloadkolla-febcb600f122dc644f8a05c4a7697a39e9157834.tar.gz
kolla-febcb600f122dc644f8a05c4a7697a39e9157834.zip
Source installation in virtualenv
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
Diffstat (limited to 'docker/openstack-base')
-rw-r--r--docker/openstack-base/Dockerfile.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2
index 1db7eb011..900fc3b4d 100644
--- a/docker/openstack-base/Dockerfile.j2
+++ b/docker/openstack-base/Dockerfile.j2
@@ -74,10 +74,13 @@ RUN apt-get install -y --no-install-recommends \
ADD openstack-base-archive /openstack-base-source
RUN ln -s openstack-base-source/* /requirements \
+ && mkdir /var/lib/kolla \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python get-pip.py \
&& rm get-pip.py \
- && pip --no-cache-dir install -U -c requirements/upper-constraints.txt \
+ && pip install -U virtualenv \
+ && virtualenv /var/lib/kolla/venv \
+ && /var/lib/kolla/venv/bin/pip --no-cache-dir install -U -c requirements/upper-constraints.txt \
python-barbicanclient \
python-ceilometerclient \
python-congressclient \
@@ -96,5 +99,6 @@ RUN ln -s openstack-base-source/* /requirements \
python-openstackclient \
MySQL-python \
python-memcached
+ENV PATH /var/lib/kolla/venv/bin:$PATH
{% endif %}