kolla-ansible/docker/ceilometer/ceilometer-api/Dockerfile.j2
Martin Falatic cfa5b36e53 Customizations for ceilometer
This patchset contains customization of Dockerfile of ceilometer containers

Change-Id: Iee8db7e105fbd8c3d5c947dd3b7c5e0ca7c49b78
Partially-implements: blueprint third-party-plugin-support
2016-07-25 22:31:48 -07:00

25 lines
788 B
Django/Jinja

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