diff --git a/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2 new file mode 100644 index 0000000000..bb53965595 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-alarm/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-alarm/build b/docker_templates/ceilometer/ceilometer-alarm/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-alarm/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-alarm/config-external.sh b/docker_templates/ceilometer/ceilometer-alarm/config-external.sh new file mode 120000 index 0000000000..cbd2182d44 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-alarm/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-alarm/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-alarm/start.sh b/docker_templates/ceilometer/ceilometer-alarm/start.sh new file mode 120000 index 0000000000..3d7d882201 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-alarm/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-alarm/start.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2 new file mode 100644 index 0000000000..cf9150af44 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-api/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-api/build b/docker_templates/ceilometer/ceilometer-api/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-api/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-api/config-external.sh b/docker_templates/ceilometer/ceilometer-api/config-external.sh new file mode 120000 index 0000000000..ba6e97d0a4 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-api/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-api/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-api/start.sh b/docker_templates/ceilometer/ceilometer-api/start.sh new file mode 120000 index 0000000000..0ed8e50d7b --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-api/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-api/start.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 new file mode 100644 index 0000000000..eb3b9e060b --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2 @@ -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 %} diff --git a/docker_templates/ceilometer/ceilometer-base/build b/docker_templates/ceilometer/ceilometer-base/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-base/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2 new file mode 100644 index 0000000000..b5322b3970 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-central/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-central/build b/docker_templates/ceilometer/ceilometer-central/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-central/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-central/config-external.sh b/docker_templates/ceilometer/ceilometer-central/config-external.sh new file mode 120000 index 0000000000..4861720ed9 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-central/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-central/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-central/start.sh b/docker_templates/ceilometer/ceilometer-central/start.sh new file mode 120000 index 0000000000..7826d17f48 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-central/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-central/start.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2 new file mode 100644 index 0000000000..44f10d6179 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-collector/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-collector/build b/docker_templates/ceilometer/ceilometer-collector/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-collector/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-collector/config-external.sh b/docker_templates/ceilometer/ceilometer-collector/config-external.sh new file mode 120000 index 0000000000..98cf686b02 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-collector/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-collector/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-collector/start.sh b/docker_templates/ceilometer/ceilometer-collector/start.sh new file mode 120000 index 0000000000..a00030fdb8 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-collector/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-collector/start.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2 new file mode 100644 index 0000000000..c771743814 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-compute/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-compute/build b/docker_templates/ceilometer/ceilometer-compute/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-compute/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-compute/config-external.sh b/docker_templates/ceilometer/ceilometer-compute/config-external.sh new file mode 120000 index 0000000000..5658fb7d8c --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-compute/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-compute/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-compute/start.sh b/docker_templates/ceilometer/ceilometer-compute/start.sh new file mode 120000 index 0000000000..42e2494f22 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-compute/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-compute/start.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2 b/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2 new file mode 100644 index 0000000000..af220a3713 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-notification/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/ceilometer/ceilometer-notification/build b/docker_templates/ceilometer/ceilometer-notification/build new file mode 120000 index 0000000000..43944faa00 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-notification/build @@ -0,0 +1 @@ +../../../tools/build-docker-image \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-notification/config-external.sh b/docker_templates/ceilometer/ceilometer-notification/config-external.sh new file mode 120000 index 0000000000..9834f0cc13 --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-notification/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-notification/config-external.sh \ No newline at end of file diff --git a/docker_templates/ceilometer/ceilometer-notification/start.sh b/docker_templates/ceilometer/ceilometer-notification/start.sh new file mode 120000 index 0000000000..a97606851c --- /dev/null +++ b/docker_templates/ceilometer/ceilometer-notification/start.sh @@ -0,0 +1 @@ +../../../docker/common/ceilometer/ceilometer-notification/start.sh \ No newline at end of file