aboutsummaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-03-12 08:46:15 +0000
committerGerrit Code Review <review@openstack.org>2019-03-12 08:46:15 +0000
commitc2804ca14f47702bc4a26e624ee91028b9ae8662 (patch)
tree8d2e2ef9b53f375a2331d44445108634a6545cf2 /docker/macros.j2
parent1545fa6944605bf7783b36bd44b9eefd155c5f4c (diff)
parentef83ff13fed6c4fb99a3f0445314fa08fa6fd932 (diff)
downloadkolla-c2804ca14f47702bc4a26e624ee91028b9ae8662.tar.gz
kolla-c2804ca14f47702bc4a26e624ee91028b9ae8662.zip
Merge "Introduce 'get_pip' macro"
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 5386dca75..aee933e7b 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -21,6 +21,12 @@
{% endif %}
{%- endmacro %}
+{% macro get_pip() %}
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+ && python get-pip.py \
+ && rm get-pip.py
+{% endmacro %}
+
{% macro install_pip(packages, constraints = true, pip_version = pip) %}
{%- if packages is sequence and packages|length > 0 -%}
{%- if not pip_version -%}