From a26f119c73c4db96b63eea3b7eb9acce30fc5e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Ruiz=20Ruiz?= Date: Tue, 30 Jan 2018 17:08:18 +0100 Subject: [PATCH] Upgrade containters to 3.1.0_6.1.2 --- docker-compose.yml | 4 ++-- kibana/Dockerfile | 2 +- kibana/config/wait-for-it.sh | 14 +++++++------- logstash/Dockerfile | 2 +- wazuh/Dockerfile | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4dbd7802..6e8418ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,7 +37,7 @@ services: - LS_HEAP_SIZE=2048m - XPACK_MONITORING_ENABLED=false elasticsearch: - image: docker.elastic.co/elasticsearch/elasticsearch:6.1.1 + image: docker.elastic.co/elasticsearch/elasticsearch:6.1.2 hostname: elasticsearch restart: always ports: @@ -78,7 +78,7 @@ services: - wazuh entrypoint: /wait-for-it.sh elasticsearch # environment: -# - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-3.1.0-6.1.0.zip" +# - "WAZUH_KIBANA_PLUGIN_URL=http://your.repo/wazuhapp-3.1.0-6.1.2.zip" nginx: image: wazuh/wazuh-nginx hostname: nginx diff --git a/kibana/Dockerfile b/kibana/Dockerfile index c2d9fbdc..e276a7ea 100644 --- a/kibana/Dockerfile +++ b/kibana/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.elastic.co/kibana/kibana:6.1.1 +FROM docker.elastic.co/kibana/kibana:6.1.2 USER root diff --git a/kibana/config/wait-for-it.sh b/kibana/config/wait-for-it.sh index 9722ac66..9c5942f4 100644 --- a/kibana/config/wait-for-it.sh +++ b/kibana/config/wait-for-it.sh @@ -5,7 +5,7 @@ set -e host="$1" shift cmd="kibana" -WAZUH_KIBANA_PLUGIN_URL=${WAZUH_KIBANA_PLUGIN_URL:-https://packages.wazuh.com/wazuhapp/wazuhapp-3.1.0_6.1.1.zip} +WAZUH_KIBANA_PLUGIN_URL=${WAZUH_KIBANA_PLUGIN_URL:-https://packages.wazuh.com/wazuhapp/wazuhapp-3.1.0_6.1.2.zip} until curl -XGET $host:9200; do >&2 echo "Elastic is unavailable - sleeping" @@ -14,17 +14,17 @@ done >&2 echo "Elastic is up - executing command" -#Insert default templates -curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/wazuh-elastic6-template-alerts.json | curl -XPUT 'http://elasticsearch:9200/_template/wazuh' -H 'Content-Type: application/json' -d @- sleep 5 +#Insert default templates +curl https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/wazuh-elastic6-template-alerts.json | curl -XPUT 'http://elasticsearch:9200/_template/wazuh' -H 'Content-Type: application/json' -d @- -curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/wazuh-elastic6-template-monitoring.json | curl -XPUT 'http://elasticsearch:9200/_template/wazuh-agent' -H 'Content-Type: application/json' -d @- +sleep 5 +#Insert default templates +curl https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/wazuh-elastic6-template-monitoring.json | curl -XPUT 'http://elasticsearch:9200/_template/wazuh-agent' -H 'Content-Type: application/json' -d @- #Insert sample alert: sleep 5 -curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/alert_sample.json | curl -XPUT "http://elasticsearch:9200/wazuh-alerts-3.x-"`date +%Y.%m.%d`"/wazuh/sample" -H 'Content-Type: application/json' -d @- -sleep 5 - +curl https://raw.githubusercontent.com/wazuh/wazuh/3.1/extensions/elasticsearch/alert_sample.json | curl -XPUT "http://elasticsearch:9200/wazuh-alerts-3.x-"`date +%Y.%m.%d`"/wazuh/sample" -H 'Content-Type: application/json' -d @- if /usr/share/kibana/bin/kibana-plugin list | grep wazuh; then echo "Wazuh APP already installed" diff --git a/logstash/Dockerfile b/logstash/Dockerfile index 90a93dd1..db67c405 100644 --- a/logstash/Dockerfile +++ b/logstash/Dockerfile @@ -1,3 +1,3 @@ -FROM docker.elastic.co/logstash/logstash:6.1.1 +FROM docker.elastic.co/logstash/logstash:6.1.2 COPY config/logstash.conf /etc/logstash/conf.d/logstash.conf diff --git a/wazuh/Dockerfile b/wazuh/Dockerfile index 39610a62..a2eaf06c 100644 --- a/wazuh/Dockerfile +++ b/wazuh/Dockerfile @@ -1,5 +1,5 @@ FROM phusion/baseimage:latest -ARG FILEBEAT_VERSION=6.1.0 +ARG FILEBEAT_VERSION=6.1.2 RUN apt-get update; apt-get -y dist-upgrade RUN apt-get -y install openssl postfix bsd-mailx curl apt-transport-https lsb-release