Merge "Updated Gnocchi binary containers"

This commit is contained in:
Jenkins 2016-06-08 15:20:10 +00:00 committed by Gerrit Code Review
commit 4204f29e64
3 changed files with 36 additions and 1 deletions

View File

@ -10,6 +10,12 @@ RUN yum -y install \
openstack-gnocchi-indexer-sqlalchemy \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
gnocchi-api \
&& apt-get clean
{% endif %}
{% endif %}

View File

@ -8,11 +8,18 @@ RUN yum -y install \
openstack-gnocchi-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
gnocchi-common \
&& apt-get clean
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['ubuntu', 'debian'] %}
RUN apt-get -y install --no-install-recommends libpq-dev \
RUN apt-get -y install --no-install-recommends \
libpq-dev \
&& apt-get clean
{% endif %}

View File

@ -0,0 +1,22 @@
FROM {{ namespace }}/{{ image_prefix }}gnocchi-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-gnocchi-metricd \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
gnocchi-metricd \
&& apt-get clean
{% endif %}
{% endif %}
{{ include_footer }}
USER gnocchi