From 2b3f71aa100f3e5a2f96e66e1eb6dc9ae5306840 Mon Sep 17 00:00:00 2001 From: Florian Braun Date: Thu, 8 Feb 2018 11:20:48 +0100 Subject: [PATCH] Buildin all dependencies into the Container We Download and install all external dependencys in our container. So no network intreraction will be required by Kibana on launch of the container. This also saves time on launch as the plugin only has to be installed on container build. So with this dockerfile all stuff is in the image and does not need downloads on deploy. --- kibana/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kibana/Dockerfile b/kibana/Dockerfile index e276a7ea..7fdb7bd4 100644 --- a/kibana/Dockerfile +++ b/kibana/Dockerfile @@ -6,4 +6,16 @@ COPY ./config/kibana.yml /usr/share/kibana/config/kibana.yml COPY config/wait-for-it.sh /wait-for-it.sh +ADD https://packages.wazuh.com/wazuhapp/wazuhapp-3.1.0_6.1.2.zip /tmp + +ADD https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/wazuh-elastic6-template-alerts.json /usr/share/kibana/config + +ADD https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/wazuh-elastic6-template-monitoring.json /usr/share/kibana/config + +ADD https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/alert_sample.json /usr/share/kibana/config + +RUN /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-3.1.0_6.1.2.zip + +RUN rm -rf /tmp/* + RUN chmod 755 /wait-for-it.sh