From 2187125b134102e3dd04c1819d54df6675c080b7 Mon Sep 17 00:00:00 2001 From: Ildar Iskhakov Date: Fri, 22 Jul 2016 15:05:13 -0700 Subject: [PATCH] Customizations for kibana This patchset contains customization of Dockerfile of kibana container Change-Id: I0081cbcfeea7d0cd270116b61f009ea1a797c330 Partially-implements: blueprint third-party-plugin-support --- docker/kibana/Dockerfile.j2 | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/docker/kibana/Dockerfile.j2 b/docker/kibana/Dockerfile.j2 index 10da65601d..0eddf0ae0c 100644 --- a/docker/kibana/Dockerfile.j2 +++ b/docker/kibana/Dockerfile.j2 @@ -1,23 +1,16 @@ FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} + RUN useradd -r -m --user-group kibana \ && usermod -a -G kolla kibana -{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} - -RUN yum -y install \ - kibana \ - && yum clean all - -{% elif base_distro in ['ubuntu', 'debian'] %} - -RUN apt-get -y install --no-install-recommends \ - kibana \ - && apt-get clean - -{% endif %} +{% set kibana_packages = ['kibana'] %} +RUN {{ macros.install_packages(kibana_packages | customizable("packages")) }} +{% block kibana_footer %}{% endblock %} +{% block footer %}{% endblock %} {{ include_footer }} USER kibana