diff --git a/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 new file mode 100644 index 0000000000000000000000000000000000000000..93d8214764536656d3150fe1a9952409bd088e15 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-api/Dockerfile.j2 @@ -0,0 +1,18 @@ +FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-gnocchi-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-gnocchi-api \ + openstack-gnocchi-carbonara \ + openstack-gnocchi-indexer-sqlalchemy \ + && yum clean all + + {% endif %} +{% endif %} + +COPY start.sh / +COPY config-external.sh /opt/kolla/ + +CMD ["/start.sh"] diff --git a/docker_templates/gnocchi/gnocchi-api/config-external.sh b/docker_templates/gnocchi/gnocchi-api/config-external.sh new file mode 120000 index 0000000000000000000000000000000000000000..ef5155846fd557099bdc3e6780704b1d9169b241 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-api/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/gnocchi/gnocchi-api/config-external.sh \ No newline at end of file diff --git a/docker_templates/gnocchi/gnocchi-api/start.sh b/docker_templates/gnocchi/gnocchi-api/start.sh new file mode 120000 index 0000000000000000000000000000000000000000..92849bb3d4b65f5d7dc50b75e91e0cc11af399e8 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-api/start.sh @@ -0,0 +1 @@ +../../../docker/common/gnocchi/gnocchi-api/start.sh \ No newline at end of file diff --git a/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2 new file mode 100644 index 0000000000000000000000000000000000000000..db82205244714eab964a08f7929873f814e0da48 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-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 ./gnocchi.tar / +RUN ln -s /gnocchi-* /gnocchi + +RUN cd /gnocchi \ + && useradd --user-group gnocchi \ + && pip install -r requirements.txt \ + && pip install /gnocchi \ + && mkdir /etc/gnocchi /var/log/gnocchi \ + && cp -r /gnocchi/etc/* /etc/gnocchi/ \ + && rm -rf /root/.cache + +{% endif %} diff --git a/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2 b/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2 new file mode 100644 index 0000000000000000000000000000000000000000..446c47d1c93c7cb219b39cb0996cdc5f21427d73 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-statsd/Dockerfile.j2 @@ -0,0 +1,16 @@ +FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-gnocchi-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-gnocchi-statsd \ + && yum clean all + + {% endif %} +{% endif %} + +COPY start.sh / +COPY config-external.sh /opt/kolla/ + +CMD ["/start.sh"] diff --git a/docker_templates/gnocchi/gnocchi-statsd/config-external.sh b/docker_templates/gnocchi/gnocchi-statsd/config-external.sh new file mode 120000 index 0000000000000000000000000000000000000000..a3d14b10e5602cc2542f3756ee25edf1329244f8 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-statsd/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/gnocchi/gnocchi-statsd/config-external.sh \ No newline at end of file diff --git a/docker_templates/gnocchi/gnocchi-statsd/start.sh b/docker_templates/gnocchi/gnocchi-statsd/start.sh new file mode 120000 index 0000000000000000000000000000000000000000..d273687080cfad52fbba48b09de3d825d081d5d9 --- /dev/null +++ b/docker_templates/gnocchi/gnocchi-statsd/start.sh @@ -0,0 +1 @@ +../../../docker/common/gnocchi/gnocchi-statsd/start.sh \ No newline at end of file