aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/gnocchi/gnocchi-api/Dockerfile.j26
-rw-r--r--docker/gnocchi/gnocchi-base/Dockerfile.j29
-rw-r--r--docker/gnocchi/gnocchi-metricd/Dockerfile.j222
3 files changed, 36 insertions, 1 deletions
diff --git a/docker/gnocchi/gnocchi-api/Dockerfile.j2 b/docker/gnocchi/gnocchi-api/Dockerfile.j2
index 2d66e5e4d..995cdeaca 100644
--- a/docker/gnocchi/gnocchi-api/Dockerfile.j2
+++ b/docker/gnocchi/gnocchi-api/Dockerfile.j2
@@ -10,6 +10,12 @@ RUN yum -y install \
openstack-gnocchi-indexer-sqlalchemy \
&& yum clean all
+ {% elif base_distro in ['ubuntu'] %}
+
+RUN apt-get -y install --no-install-recommends \
+ gnocchi-api \
+ && apt-get clean
+
{% endif %}
{% endif %}
diff --git a/docker/gnocchi/gnocchi-base/Dockerfile.j2 b/docker/gnocchi/gnocchi-base/Dockerfile.j2
index f478ae5a2..650b06b13 100644
--- a/docker/gnocchi/gnocchi-base/Dockerfile.j2
+++ b/docker/gnocchi/gnocchi-base/Dockerfile.j2
@@ -8,11 +8,18 @@ RUN yum -y install \
openstack-gnocchi-common \
&& yum clean all
+ {% elif base_distro in ['ubuntu'] %}
+
+RUN apt-get -y install --no-install-recommends \
+ gnocchi-common \
+ && apt-get clean
+
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['ubuntu', 'debian'] %}
-RUN apt-get -y install --no-install-recommends libpq-dev \
+RUN apt-get -y install --no-install-recommends \
+ libpq-dev \
&& apt-get clean
{% endif %}
diff --git a/docker/gnocchi/gnocchi-metricd/Dockerfile.j2 b/docker/gnocchi/gnocchi-metricd/Dockerfile.j2
new file mode 100644
index 000000000..d4ac00ad1
--- /dev/null
+++ b/docker/gnocchi/gnocchi-metricd/Dockerfile.j2
@@ -0,0 +1,22 @@
+FROM {{ namespace }}/{{ image_prefix }}gnocchi-base:{{ tag }}
+MAINTAINER {{ maintainer }}
+
+{% if install_type == 'binary' %}
+ {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
+
+RUN yum -y install \
+ openstack-gnocchi-metricd \
+ && yum clean all
+
+ {% elif base_distro in ['ubuntu'] %}
+
+RUN apt-get -y install --no-install-recommends \
+ gnocchi-metricd \
+ && apt-get clean
+
+ {% endif %}
+{% endif %}
+
+{{ include_footer }}
+
+USER gnocchi