Update to wazuh 4.0.4 (#428)

Former-commit-id: e58c2b25d8
This commit is contained in:
AlfonsoRBJ
2021-01-14 17:22:43 +01:00
committed by GitHub
parent 244eb2500a
commit 13ba5ee731
2 changed files with 3 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ FROM waystonesystems/baseimage-centos:0.2.0
# Arguments # Arguments
ARG FILEBEAT_VERSION=7.9.1 ARG FILEBEAT_VERSION=7.9.1
ARG WAZUH_VERSION=4.0.3-1 ARG WAZUH_VERSION=4.0.4-1
# Environment variables # Environment variables
ENV API_USER="foo" \ ENV API_USER="foo" \
@@ -24,9 +24,6 @@ baseurl=https://packages.wazuh.com/4.x/yum/\n\
protect=1\n'\ protect=1\n'\
>> /etc/yum.repos.d/wazuh.repo >> /etc/yum.repos.d/wazuh.repo
# Copy Wazuh Manager custom package
COPY config/wazuh-manager-4.0.3-1.x86_64.rpm /tmp/wazuh-manager-4.0.3-1.x86_64.rpm
# Install packages # Install packages
RUN set -x && \ RUN set -x && \
curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \ curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \
@@ -36,7 +33,7 @@ RUN set -x && \
yum upgrade -y &&\ yum upgrade -y &&\
yum install -y openssl vim expect python-boto python-pip python-cryptography && \ yum install -y openssl vim expect python-boto python-pip python-cryptography && \
yum install -y postfix bsd-mailx mailx ca-certificates && \ yum install -y postfix bsd-mailx mailx ca-certificates && \
yum install -y /tmp/wazuh-manager-4.0.3-1.x86_64.rpm && \ yum install -y wazuh-manager-${WAZUH_VERSION} && \
yum clean all && \ yum clean all && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm -f /var/ossec/logs/alerts/*/*/* && \ rm -f /var/ossec/logs/alerts/*/*/* && \
@@ -124,4 +121,4 @@ ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/e
RUN chmod go-w /etc/filebeat/wazuh-template.json RUN chmod go-w /etc/filebeat/wazuh-template.json
# Run all services # Run all services
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -1 +0,0 @@
ad2d636c325fddb78af5dedc55db63428c09d671