Skip to content
Snippets Groups Projects
Commit 449f983c authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Customizations for aodh"

parents 153cd514 b9465f87
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}aodh-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 aodh_api_packages = ['openstack-aodh-api'] %}
RUN yum -y install \
openstack-aodh-api \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set aodh_api_packages = ['aodh-api'] %}
RUN apt-get -y install --no-install-recommends \
aodh-api \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(aodh_api_packages | customizable("packages")) }}
{% endif %} {% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start COPY extend_start.sh /usr/local/bin/kolla_aodh_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_aodh_extend_start
{% block aodh_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER aodh USER aodh
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %} {% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-aodh-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \ {% if install_type == 'binary' %}
aodh-common \
&& apt-get clean
{% endif %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set aodh_base_packages = ['openstack-aodh-common'] %}
{% elif base_distro in ['ubuntu'] %}
{% set aodh_base_packages = ['aodh-common'] %}
{% endif %}
RUN {{ macros.install_packages(aodh_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
...@@ -29,3 +25,6 @@ RUN ln -s aodh-base-source/* aodh \ ...@@ -29,3 +25,6 @@ RUN ln -s aodh-base-source/* aodh \
{% endif %} {% endif %}
RUN usermod -a -G kolla aodh RUN usermod -a -G kolla aodh
{% block aodh_base_footer %}{% endblock %}
{% block footer %}{% endblock %}
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}aodh-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 aodh_evaluator_packages = ['openstack-aodh-evaluator'] %}
RUN yum -y install \
openstack-aodh-evaluator \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set aodh_evaluator_packages = ['aodh-evaluator'] %}
RUN apt-get -y install --no-install-recommends \
aodh-evaluator \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(aodh_evaluator_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block aodh_evaluator_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}aodh-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 aodh_expirer_packages = ['openstack-aodh-expirer'] %}
RUN yum -y install \
openstack-aodh-expirer \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set aodh_expirer_packages = ['aodh-expirer'] %}
RUN apt-get -y install --no-install-recommends \
aodh-expirer \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(aodh_expirer_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block aodh_expirer_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}aodh-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 aodh_listener_packages = ['openstack-aodh-listener'] %}
RUN yum -y install \
openstack-aodh-listener \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set aodh_listener_packages = ['aodh-listener'] %}
RUN apt-get -y install --no-install-recommends \
aodh-listener \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(aodh_listener_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block aodh_listener_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}aodh-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 aodh_notifier_packages = ['openstack-aodh-notifier'] %}
RUN yum -y install \
openstack-aodh-notifier \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set aodh_notifier_packages = ['aodh-notifier'] %}
RUN apt-get -y install --no-install-recommends \
aodh-notifier \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(aodh_notifier_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% block aodh_notifier_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment