kolla-ansible/docker/kuryr/kuryr-libnetwork/Dockerfile.j2
caowei 06ce7be1c3 Add header blocks to Dockerfiles
TrivialFix

Change-Id: I73da488b3d147c03e113772a32af8401daf1583a
2016-11-05 07:24:13 +08:00

22 lines
654 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}kuryr-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% block kuryr_libnetwork_header %}{% endblock %}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif install_type == 'source' %}
ADD kuryr-libnetwork-archive /kuryr-libnetwork-source
RUN ln -s kuryr-libnetwork-source/* kuryr-libnetwork \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr-libnetwork
{% endif %}
{% block kuryr_libnetwork_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}