5026e976e6
Added ubuntu binary containers Added gnocchi-metricd which is new package in centos and ubuntu Change-Id: If21d705e8bd1e34ea894c83ae42b0c8ef20510d7 Depends-On: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug:#1582523
38 lines
1.1 KiB
Django/Jinja
38 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
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 \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
ADD gnocchi-base-archive /gnocchi-base-source
|
|
RUN ln -s gnocchi-base-source/* gnocchi \
|
|
&& useradd --user-group gnocchi \
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt tooz /gnocchi \
|
|
&& mkdir -p /etc/gnocchi /var/log/gnocchi /home/gnocchi \
|
|
&& cp -r /gnocchi/etc/* /etc/gnocchi/ \
|
|
&& chown -R gnocchi: /etc/gnocchi /var/log/gnocchi /home/gnocchi
|
|
|
|
{% endif %}
|
|
|
|
RUN usermod -a -G kolla gnocchi
|