diff --git a/CHANGELOG.md b/CHANGELOG.md index b1351026..003c533b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. +## Wazuh Docker v3.9.1_6.8.0 + +### Added + +- Update to Wazuh version 3.9.1_6.8.0 ([#181](https://github.com/wazuh/wazuh-docker/pull/181)) + +### Fixed + +- Fixed `ELASTICSEARCH_KIBANA_IP` environment variable ([@manuasir](https://github.com/manuasir)) ([#181](https://github.com/wazuh/wazuh-docker/pull/181)) + ## Wazuh Docker v3.9.0_6.7.2 ### Changed diff --git a/README.md b/README.md index c90beccc..173b7eb5 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ In addition, a docker-compose file is provided to launch the containers mentione * `stable` branch on correspond to the latest Wazuh-Docker stable version. * `master` branch contains the latest code, be aware of possible bugs on this branch. -* `Wazuh.Version_ElasticStack.Version` (for example 3.9.0_6.7.2) branch. This branch contains the current release referenced in Docker Hub. The container images are installed under the current version of this branch. +* `Wazuh.Version_ElasticStack.Version` (for example 3.9.1_6.8.2) branch. This branch contains the current release referenced in Docker Hub. The container images are installed under the current version of this branch. ## Credits and Thank you diff --git a/VERSION b/VERSION index 649829d1..3e8fc28f 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -WAZUH-DOCKER_VERSION="3.9.0_6.7.2" -REVISION="3900" \ No newline at end of file +WAZUH-DOCKER_VERSION="3.9.1_6.8.0" +REVISION="3901" \ No newline at end of file diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile index 0833ad93..93238c65 100644 --- a/elasticsearch/Dockerfile +++ b/elasticsearch/Dockerfile @@ -13,6 +13,8 @@ ENV XPACK_ML="true" ENV ENABLE_CONFIGURE_S3="false" +ENV TEMPLATE_VERSION=v3.9.1 + # Elasticearch cluster configuration environment variables # If ELASTIC_CLUSTER is set to "true" the following variables will be added to the Elasticsearch configuration # CLUSTER_INITIAL_MASTER_NODES set to own node by default. @@ -29,6 +31,8 @@ ENV ELASTIC_CLUSTER="false" \ CLUSTER_DELAYED_TIMEOUT="1m" \ CLUSTER_INITIAL_MASTER_NODES="wazuh-elasticsearch" +ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/elasticsearch/7.x/wazuh-template.json /usr/share/elasticsearch/config + COPY config/entrypoint.sh /entrypoint.sh RUN chmod 755 /entrypoint.sh diff --git a/elasticsearch/config/entrypoint.sh b/elasticsearch/config/entrypoint.sh index 38808f76..5b42adb7 100644 --- a/elasticsearch/config/entrypoint.sh +++ b/elasticsearch/config/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/bash # Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2) -# For more information https://github.com/elastic/elasticsearch-docker/blob/6.5.4/build/elasticsearch/bin/docker-entrypoint.sh +# For more information https://github.com/elastic/elasticsearch-docker/blob/6.8.0/build/elasticsearch/bin/docker-entrypoint.sh set -e diff --git a/kibana/Dockerfile b/kibana/Dockerfile index 08a4e455..d670e978 100644 --- a/kibana/Dockerfile +++ b/kibana/Dockerfile @@ -71,4 +71,6 @@ RUN chmod +x ./welcome_wazuh.sh RUN ./welcome_wazuh.sh +RUN /usr/local/bin/kibana-docker --optimize + ENTRYPOINT /entrypoint.sh diff --git a/kibana/config/kibana_settings.sh b/kibana/config/kibana_settings.sh index fec7e289..1552c74b 100644 --- a/kibana/config/kibana_settings.sh +++ b/kibana/config/kibana_settings.sh @@ -19,7 +19,7 @@ WAZUH_MAJOR=3 ############################################################################## if [ "$ELASTICSEARCH_KIBANA_IP" != "" ]; then sed -i "s:#elasticsearch.hosts:elasticsearch.hosts:g" /usr/share/kibana/config/kibana.yml - sed -i "s/elasticsearch:9200/$ELASTICSEARCH_KIBANA_IP:9200/" /usr/share/kibana/config/kibana.yml + sed -i 's|http://elasticsearch:9200|'$ELASTICSEARCH_KIBANA_IP'|g' /usr/share/kibana/config/kibana.yml fi if [ "$KIBANA_IP" != "" ]; then diff --git a/wazuh/Dockerfile b/wazuh/Dockerfile index 8e3830e5..5b191d97 100644 --- a/wazuh/Dockerfile +++ b/wazuh/Dockerfile @@ -18,8 +18,8 @@ RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee / RUN add-apt-repository universe && apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \ apt-get --no-install-recommends --no-install-suggests -y install openssl postfix bsd-mailx python-boto python-pip \ - apt-transport-https vim expect nodejs python-cryptography mailutils libsasl2-modules wazuh-manager=${WAZUH_VERSION} \ - wazuh-api=${WAZUH_VERSION} && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -f \ + apt-transport-https vim expect nodejs python-cryptography mailutils libsasl2-modules wazuh-manager \ + wazuh-api && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -f \ /var/ossec/logs/alerts/*/*/*.log && rm -f /var/ossec/logs/alerts/*/*/*.json && rm -f \ /var/ossec/logs/archives/*/*/*.log && rm -f /var/ossec/logs/archives/*/*/*.json && rm -f \ /var/ossec/logs/firewall/*/*/*.log && rm -f /var/ossec/logs/firewall/*/*/*.json