Don't use --upgrade when installing into venv

In venv --upgrade does nothing good since venv have constraints-bound
versions of everything installed. It does bad thing though: it tries to
upgrade setuptools (they are not mentioned in upstream constraints.txt)
and break further building.

Change-Id: I93607580fbf74f1570909bc51daacee67ea8ebeb
This commit is contained in:
Yuriy Taraday 2017-01-23 17:25:23 -08:00
parent 80c1725a2f
commit d1e5e64a35
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ RUN apt-get install -y --no-install-recommends \
{{ copy_sources("openstack/keystone", "/keystone") }}
RUN useradd --user-group keystone \
&& /var/lib/microservices/venv/bin/pip install --upgrade /keystone \
&& /var/lib/microservices/venv/bin/pip install /keystone \
&& mkdir -p /etc/keystone/fernet-keys /etc/keystone/credential-keys /var/www/cgi-bin/keystone /var/log/apache2 /home/keystone \
&& cp -r /keystone/etc/* /etc/keystone/ \
&& cp /var/lib/microservices/venv/bin/keystone-wsgi-admin /var/www/cgi-bin/keystone/admin \