Customizations for ceilometer
This patchset contains customization of Dockerfile of ceilometer containers Change-Id: Iee8db7e105fbd8c3d5c947dd3b7c5e0ca7c49b78 Partially-implements: blueprint third-party-plugin-support
This commit is contained in:
parent
73ac202563
commit
cfa5b36e53
@ -1,25 +1,24 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_api_packages = ['openstack-ceilometer-api'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-ceilometer-api \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set ceilometer_api_packages = ['ceilometer-api'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
ceilometer-api \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_api_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_ceilometer_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_ceilometer_extend_start
|
||||||
RUN chmod 755 /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 }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER ceilometer
|
USER ceilometer
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_base_packages = [
|
||||||
RUN yum -y install \
|
'openstack-ceilometer-common',
|
||||||
openstack-ceilometer-common \
|
'python-tooz',
|
||||||
python-tooz \
|
'python-oslo-db'
|
||||||
python-oslo-db \
|
] %}
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set ceilometer_base_packages = [
|
||||||
RUN apt-get -y install --no-install-recommends \
|
'ceilometer-common',
|
||||||
ceilometer-common \
|
'python-pymongo'
|
||||||
python-pymongo \
|
] %}
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD ceilometer-base-archive /ceilometer-base-source
|
ADD ceilometer-base-archive /ceilometer-base-source
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_central_packages = ['openstack-ceilometer-central'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-ceilometer-central \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set ceilometer_central_packages = ['ceilometer-agent-central'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
ceilometer-agent-central \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_central_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% block ceilometer_central_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER ceilometer
|
USER ceilometer
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_collector_packages = ['openstack-ceilometer-collector'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-ceilometer-collector \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set ceilometer_collector_packages = ['ceilometer-collector'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
ceilometer-collector \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_collector_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% block ceilometer_collector_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER ceilometer
|
USER ceilometer
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_compute_packages = [
|
||||||
RUN yum -y install \
|
'openstack-ceilometer-compute',
|
||||||
openstack-ceilometer-compute \
|
'python-ceilometerclient'
|
||||||
python-ceilometerclient \
|
] %}
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
{% set ceilometer_compute_packages = [
|
||||||
RUN apt-get -y install --no-install-recommends \
|
'ceilometer-agent-compute',
|
||||||
ceilometer-agent-compute \
|
'python-ceilometerclient'
|
||||||
python-ceilometerclient \
|
] %}
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_compute_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
|
||||||
@ -36,6 +37,8 @@ RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% block ceilometer_compute_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
# NOTE(huikang): non-root user does not work with libvirt.sock.
|
# NOTE(huikang): non-root user does not work with libvirt.sock.
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set ceilometer_notification_packages = ['openstack-ceilometer-notification'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-ceilometer-notification \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set ceilometer_notification_packages = ['ceilometer-agent-notification'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
ceilometer-agent-notification \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(ceilometer_notification_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% block ceilometer_notification_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER ceilometer
|
USER ceilometer
|
||||||
|
Loading…
Reference in New Issue
Block a user