diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2016-08-31 17:00:11 +0100 |
|---|---|---|
| committer | Paul Bourke <paul.bourke@oracle.com> | 2016-08-31 17:06:20 +0100 |
| commit | 7bba25a16095cbee5631b7f9c8cc6259e4d213c6 (patch) | |
| tree | 270e3cde913e036e2df466020478e9d95ae052cf | |
| parent | 624d300dc4e736bfcaa33ba8b339770a98552e8c (diff) | |
| download | kolla-7bba25a16095cbee5631b7f9c8cc6259e4d213c6.tar.gz kolla-7bba25a16095cbee5631b7f9c8cc6259e4d213c6.zip | |
Allow operators to override use of get-pip.py
Operators may not want to run get-pip.py from an external source.
TrivialFix
Change-Id: I591b0cef135f9e1e3054c48c93a17b7b74fd0a9a
| -rw-r--r-- | docker/openstack-base/Dockerfile.j2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2 index 99544749a..3ec33f1be 100644 --- a/docker/openstack-base/Dockerfile.j2 +++ b/docker/openstack-base/Dockerfile.j2 @@ -225,12 +225,15 @@ ENV DEBIAN_FRONTEND noninteractive {{ macros.install_packages(openstack_base_packages | customizable("packages")) }} +{% block source_install_python_pip %} +RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ + && python get-pip.py \ + && rm get-pip.py +{% endblock %} + ADD openstack-base-archive /openstack-base-source RUN ln -s openstack-base-source/* /requirements \ && mkdir -p /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 virtualenv \ && virtualenv --system-site-packages /var/lib/kolla/venv \ && /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt \ |
