Add wazuh-dashboard Dockerfile

This commit is contained in:
vcerenu
2022-01-19 17:20:46 -03:00
parent ec59357d59
commit b94bad1bd0
5 changed files with 75 additions and 40 deletions
+25
View File
@@ -0,0 +1,25 @@
# Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2)
FROM ubuntu:20.04
ARG WAZUH_VERSION=4.3.0-1_amd64
ARG TEMPLATE_VERSION="master"
ARG FILEBEAT_CHANNEL=filebeat-oss
ARG FILEBEAT_VERSION=7.10.2
ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
RUN apt-get update && apt install curl gnupg -y
RUN curl https://s3.amazonaws.com/warehouse.wazuh.com/stack/dashboard/stable/wazuh-dashboard_${WAZUH_VERSION}.deb --output wazuh-dashboard_${WAZUH_VERSION}.deb && \
dpkg -i wazuh-dashboard_${WAZUH_VERSION}.deb
# Prepare permanent data
# Sync calls are due to https://github.com/docker/docker/issues/9547
COPY config/entrypoint.sh /
RUN chmod 700 /entrypoint.sh
# Services ports
EXPOSE 5601 443
ENTRYPOINT [ "/entrypoint.sh" ]
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2)
##############################################################################
# Start Wazuh dashboard
##############################################################################
service wazuh-dashboard start
service wazuh-dashboard enable