Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions lab-10-security-monitoring/Dockerfile.agent
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:22.04

ARG WAZUH_VERSION=4.9.2

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
curl \
gnupg \
apt-transport-https \
&& rm -rf /var/lib/apt/lists/*

# Instalar Wazuh Agent desde el repositorio oficial
RUN curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --dearmor -o /usr/share/keyrings/wazuh.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" \
> /etc/apt/sources.list.d/wazuh.list \
&& apt-get update \
&& apt-get install -y wazuh-agent=${WAZUH_VERSION}-1 \
&& rm -rf /var/lib/apt/lists/*

# Script de entrypoint: registra el agente y lo arranca
COPY docker-entrypoint-agent.sh /usr/local/bin/docker-entrypoint-agent.sh
RUN chmod +x /usr/local/bin/docker-entrypoint-agent.sh

ENTRYPOINT ["/usr/local/bin/docker-entrypoint-agent.sh"]
Loading
Loading