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

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

25 lines
803 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% block kuryr_base_header %}{% endblock %}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif install_type == 'source' %}
ADD kuryr-base-archive /kuryr-base-source
# NOTE(Jeffrey4l): remove kuryr-lib constraint in upper-constraints.txt file.
# Otherwise, it will be failed.
RUN ln -s kuryr-base-source/* kuryr-base \
&& sed -i 's|^kuryr-lib===.*$||g' requirements/upper-constraints.txt \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr-base
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
{% block kuryr_base_footer %}{% endblock %}