forked from wazuh/wazuh-docker
Adding template. Using "elastic-7-2" branch
This commit is contained in:
+7
-2
@@ -1,11 +1,13 @@
|
|||||||
# Wazuh App Copyright (C) 2019 Wazuh Inc. (License GPLv2)
|
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
|
||||||
FROM phusion/baseimage:latest
|
FROM phusion/baseimage:latest
|
||||||
ARG FILEBEAT_VERSION=6.7.2
|
ARG FILEBEAT_VERSION=7.0.0
|
||||||
ARG WAZUH_VERSION=3.9.0-1
|
ARG WAZUH_VERSION=3.9.0-1
|
||||||
|
|
||||||
ENV API_USER="foo" \
|
ENV API_USER="foo" \
|
||||||
API_PASS="bar"
|
API_PASS="bar"
|
||||||
|
|
||||||
|
ENV TEMPLATE_VERSION="elastic-7-2"
|
||||||
|
|
||||||
# Set repositories.
|
# Set repositories.
|
||||||
RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \
|
RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \
|
||||||
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \
|
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \
|
||||||
@@ -66,6 +68,9 @@ RUN chmod +x /etc/service/wazuh-api/run && \
|
|||||||
chmod +x /etc/service/postfix/run && \
|
chmod +x /etc/service/postfix/run && \
|
||||||
chmod +x /etc/service/filebeat/run
|
chmod +x /etc/service/filebeat/run
|
||||||
|
|
||||||
|
ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/elasticsearch/wazuh-elastic7-template-alerts.json /etc/filebeat
|
||||||
|
RUN chmod go-w /etc/filebeat/wazuh-elastic7-template-alerts.json
|
||||||
|
|
||||||
# Run all services
|
# Run all services
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user