Add Dockerfile template for Ceilometer
Change-Id: Id17f467235d70127ce92bab52a08b97a062ea207 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
a0a859ac92
commit
c6d36c68e1
16
docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2
Normal file
16
docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2
Normal 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"]
|
1
docker_templates/ceilometer/ceilometer-alarm/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-alarm/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
1
docker_templates/ceilometer/ceilometer-alarm/config-external.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-alarm/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-alarm/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-alarm/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-alarm/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-alarm/start.sh
|
16
docker_templates/ceilometer/ceilometer-api/Dockerfile.j2
Normal file
16
docker_templates/ceilometer/ceilometer-api/Dockerfile.j2
Normal 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"]
|
1
docker_templates/ceilometer/ceilometer-api/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-api/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
1
docker_templates/ceilometer/ceilometer-api/config-external.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-api/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-api/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-api/start.sh
|
24
docker_templates/ceilometer/ceilometer-base/Dockerfile.j2
Normal file
24
docker_templates/ceilometer/ceilometer-base/Dockerfile.j2
Normal 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 %}
|
1
docker_templates/ceilometer/ceilometer-base/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-base/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
16
docker_templates/ceilometer/ceilometer-central/Dockerfile.j2
Normal file
16
docker_templates/ceilometer/ceilometer-central/Dockerfile.j2
Normal 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"]
|
1
docker_templates/ceilometer/ceilometer-central/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-central/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-central/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-central/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-central/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-central/start.sh
|
@ -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"]
|
1
docker_templates/ceilometer/ceilometer-collector/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-collector/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-collector/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-collector/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-collector/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-collector/start.sh
|
18
docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2
Normal file
18
docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2
Normal 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"]
|
1
docker_templates/ceilometer/ceilometer-compute/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-compute/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-compute/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-compute/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-compute/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-compute/start.sh
|
@ -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"]
|
1
docker_templates/ceilometer/ceilometer-notification/build
Symbolic link
1
docker_templates/ceilometer/ceilometer-notification/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../tools/build-docker-image
|
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-notification/config-external.sh
|
1
docker_templates/ceilometer/ceilometer-notification/start.sh
Symbolic link
1
docker_templates/ceilometer/ceilometer-notification/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../docker/common/ceilometer/ceilometer-notification/start.sh
|
Loading…
Reference in New Issue
Block a user