Skip to content

Commit

Permalink
Removing logs from Wazuh image (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phandora authored and jesuslinares committed Apr 26, 2019
1 parent 3f75dbd commit 3f94f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wazuh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RUN add-apt-repository universe && apt-get update && apt-get upgrade -y -o Dpkg:
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 \
/var/ossec/logs/alerts/*/*/*.log && rm -f /var/ossec/logs/alerts/*/*/*.json
/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

# Adding first run script and entrypoint
COPY config/data_dirs.env /data_dirs.env
Expand Down

0 comments on commit 3f94f73

Please sign in to comment.