zhubingbing 56838a347e repair aodh image dockerfile
1. Add the missing packages in the aodh image
   packages: pymongo

2. Add aodh sudoer

3. aodh sync db command is error
   sync db command is: aodh-dbsync
   Reference link: http://docs.openstack.org/developer/aodh/install/manual.html

4. Add aodh-api running as a mod_wsgi

   Reference link: http://docs.openstack.org/developer/aodh/install/mod_wsgi.html

Closes-Bug: #1609000

Change-Id: Ia3706794059231fa08444e32eb034d64fbfa5182
2016-08-29 07:24:44 +00:00

20 lines
709 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set aodh_api_packages = ['openstack-aodh-api'] %}
{% elif base_distro in ['ubuntu'] %}
{% set aodh_api_packages = ['aodh-api'] %}
{% endif %}
{{ macros.install_packages(aodh_api_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_aodh_extend_start
RUN chmod 755 /usr/local/bin/kolla_aodh_extend_start
{% block aodh_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}