kolla/docker/vitrage/vitrage-api/Dockerfile.j2
Eduardo Gonzalez 02ce804a44 Fix vitrage images
Vitrage start api service under apache or uwsgi.
We have not created a migration to uwsgi.
This change adds apache packages needed for api
also add rdo binaries to rpm distros.

Adds missing collector image.

Change-Id: Iecb32e321b46f9b567af25fa6acafbe9a292bbca
Closes-Bug: #1681613
2017-10-14 16:54:00 +00:00

39 lines
1.1 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}vitrage-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block vitrage_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set vitrage_api_packages = [
'httpd',
'mod_wsgi',
'mod_ssl',
'python-ldappool',
'openstack-vitrage-api'
] %}
{{ macros.install_packages(vitrage_api_packages | customizable("packages")) }}
RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf
{% elif base_distro in ['debian', 'ubuntu'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_vitrage_extend_start
RUN chmod 755 /usr/local/bin/kolla_vitrage_extend_start
{% block vitrage_api_footer %}{% endblock %}
{% block footer %}{% endblock %}