kolla/docker/gnocchi/gnocchi-statsd/Dockerfile.j2
Nenad Radojevic acf613e91a Add gnocchi-statsd support for Debian systems
The current Docker container for gnocchi-statsd is missing support
for Ubuntu and will fail on start due to missing gnocchi-statsd
package.
Dockerfile extended by the required gnocchi-statsd package.

Closes-Bug: #1700513
Change-Id: I0c5d221f08ae7f1c4a81f83a5ec3fb75e5207b2b
2017-06-27 18:37:11 +02:00

21 lines
728 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}gnocchi-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block gnocchi_statsd_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set gnocchi_statsd_packages = ['openstack-gnocchi-statsd'] %}
{% elif base_distro in ['ubuntu'] %}
{% set gnocchi_statsd_packages = ['gnocchi-statsd'] %}
{% endif %}
{{ macros.install_packages(gnocchi_statsd_packages | customizable("packages")) }}
{% endif %}
{% block gnocchi_statsd_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER gnocchi