Add ability to use custom index server for pip
All Python modules inside fuel-ccp are installed via `pip install` from official PyPi repository. That might sometimes be not convenient, in case somebody wants to use own repository. Change-Id: Ia3cb2676e4b048fe9babd663c5a3d96cdb907a32
This commit is contained in:
parent
c482e42108
commit
dba9d5a5e9
|
@ -13,7 +13,7 @@ RUN apt-get install -y --no-install-recommends \
|
|||
git \
|
||||
&& apt-get clean
|
||||
|
||||
COPY pip.conf /tmp/pip.conf
|
||||
COPY {{ render('pip.conf.j2') }} /tmp/pip.conf
|
||||
|
||||
{{ copy_sources("openstack/requirements", "/tmp/requirements") }}
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
[global]
|
||||
constraint = /var/lib/microservices/venv/constraints.txt
|
||||
no-cache-dir = false
|
||||
{% if url.pypi_index %}
|
||||
index-url = {{ url.pypi_index }}
|
||||
{% endif %}
|
|
@ -2,3 +2,6 @@ sources:
|
|||
openstack/requirements:
|
||||
git_url: https://git.openstack.org/openstack/requirements.git
|
||||
git_ref: stable/newton
|
||||
|
||||
url:
|
||||
pypi_index: https://pypi.python.org/simple/
|
||||
|
|
Loading…
Reference in New Issue