Add Dockerfile template for Ceilometer

Change-Id: Id17f467235d70127ce92bab52a08b97a062ea207
Partially-Implements: blueprint dockerfile-template
This commit is contained in:
Swapnil Kulkarni 2015-08-12 07:28:38 +00:00
parent a0a859ac92
commit c6d36c68e1
26 changed files with 141 additions and 0 deletions

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-alarm \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-alarm/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-alarm/start.sh

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-api \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-api/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-api/start.sh

View File

@ -0,0 +1,24 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD ./ceilometer.tar /
RUN ln -s /ceilometer-* /ceilometer
RUN cd /ceilometer \
&& useradd --user-group ceilometer \
&& pip install -r requirements.txt \
&& pip install /ceilometer \
&& mkdir /etc/ceilometer /var/log/ceilometer \
&& cp -r /ceilometer/etc/* /etc/ceilometer/ \
&& rm -rf /root/.cache
{% endif %}

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-central \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-central/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-central/start.sh

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-collector \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-collector/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-collector/start.sh

View File

@ -0,0 +1,18 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-compute \
python-ceilometerclient \
python-pecan \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-compute/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-compute/start.sh

View File

@ -0,0 +1,16 @@
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-ceilometer-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
RUN yum install -y openstack-ceilometer-notification \
&& yum clean all
{% endif %}
{% endif %}
COPY ./start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-notification/config-external.sh

View File

@ -0,0 +1 @@
../../../docker/common/ceilometer/ceilometer-notification/start.sh