-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
FROM fedora:34 | ||
FROM debian:buster-slim | ||
|
||
LABEL maintainer "NoEnv" | ||
LABEL version "4.1.5" | ||
LABEL description "Wazuh Agent" | ||
|
||
COPY entrypoint.sh ossec.conf wazuh.repo / | ||
COPY entrypoint.sh ossec.conf / | ||
|
||
RUN mv /wazuh.repo /etc/yum.repos.d/wazuh.repo && \ | ||
rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && \ | ||
dnf -y --setopt=tsflags=nodocs install procps-ng inotify-tools python-docker wazuh-agent && \ | ||
RUN apt-get update && apt-get install -y \ | ||
procps curl apt-transport-https gnupg2 inotify-tools python-docker && \ | ||
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \ | ||
echo "deb https://packages.wazuh.com/4.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \ | ||
apt-get update && \ | ||
apt-get install -y wazuh-agent=4.1.5-1 && \ | ||
mv /ossec.conf /var/ossec/etc/ && \ | ||
dnf clean all && \ | ||
rm -rf /var/lib/dnf/repos/* /tmp/* /var/tmp/* /var/log/*.log | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file was deleted.
Oops, something went wrong.