Skip to content

Instantly share code, notes, and snippets.

@foxutech
Last active May 31, 2018 18:07
Show Gist options
  • Save foxutech/2d3512c3667c0cd67ff7187fac122c38 to your computer and use it in GitHub Desktop.
Save foxutech/2d3512c3667c0cd67ff7187fac122c38 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
RUN apt-get update -y && apt-get install -y curl apt-transport-https lsb-release libopenscap8 xsltproc
RUN curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add -
RUN echo "deb https://packages.wazuh.com/apt xenial main"| tee /etc/apt/sources.list.d/wazuh.list
RUN apt-get -y update && apt-get -y install wazuh-agent
RUN echo "TopSecret" >> /var/ossec/etc/authd.pass
RUN chown -R ossec /var/ossec
EXPOSE 1514/udp 1515
RUN /var/ossec/bin/agent-auth -m xy.yx.xy.yx
CMD service wazuh-agent start && tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment