mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-05 06:23:16 +00:00
update base and fix wazuh manager build
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
||||||
FROM amazonlinux:2023.3.20240131.0 AS builder
|
FROM amazonlinux:2023.3.20240219.0 AS builder
|
||||||
|
|
||||||
ARG WAZUH_VERSION
|
ARG WAZUH_VERSION
|
||||||
ARG WAZUH_TAG_REVISION
|
ARG WAZUH_TAG_REVISION
|
||||||
@@ -42,7 +42,7 @@ RUN mkdir -p $INSTALL_DIR/data/wazuh/logs && chown -R 101:101 $INSTALL_DIR/data/
|
|||||||
# Add entrypoint
|
# Add entrypoint
|
||||||
# Add wazuh_app_config
|
# Add wazuh_app_config
|
||||||
################################################################################
|
################################################################################
|
||||||
FROM amazonlinux:2023.3.20240131.0
|
FROM amazonlinux:2023.3.20240219.0
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV USER="wazuh-dashboard" \
|
ENV USER="wazuh-dashboard" \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
REPOSITORY="packages.wazuh.com/4.x"
|
REPOSITORY="packages.wazuh.com/4.x"
|
||||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '["]tag_name["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
||||||
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
||||||
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
||||||
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
WAZUH_APP=https://packages.wazuh.com/4.x/ui/dashboard/wazuh-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
WAZUH_APP=https://packages.wazuh.com/4.x/ui/dashboard/wazuh-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
||||||
WAZUH_CHECK_UPDATES=https://packages.wazuh.com/4.x/ui/dashboard/wazuhCheckUpdates-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
WAZUH_CHECK_UPDATES=https://packages.wazuh.com/4.x/ui/dashboard/wazuhCheckUpdates-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
||||||
WAZUH_CORE=https://packages.wazuh.com/4.x/ui/dashboard/wazuhCore-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
WAZUH_CORE=https://packages.wazuh.com/4.x/ui/dashboard/wazuhCore-${WAZUH_VERSION}-${WAZUH_UI_REVISION}.zip
|
||||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '["]tag_name["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
||||||
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
||||||
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
||||||
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
||||||
FROM amazonlinux:2023.3.20240131.0 AS builder
|
FROM amazonlinux:2023.3.20240219.0 AS builder
|
||||||
|
|
||||||
ARG WAZUH_VERSION
|
ARG WAZUH_VERSION
|
||||||
ARG WAZUH_TAG_REVISION
|
ARG WAZUH_TAG_REVISION
|
||||||
@@ -29,7 +29,7 @@ RUN bash config.sh
|
|||||||
# Add entrypoint
|
# Add entrypoint
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
FROM amazonlinux:2023.3.20240131.0
|
FROM amazonlinux:2023.3.20240219.0
|
||||||
|
|
||||||
ENV USER="wazuh-indexer" \
|
ENV USER="wazuh-indexer" \
|
||||||
GROUP="wazuh-indexer" \
|
GROUP="wazuh-indexer" \
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ rm -rf ${INSTALLATION_DIR}/
|
|||||||
|
|
||||||
## variables
|
## variables
|
||||||
REPOSITORY="packages.wazuh.com/4.x"
|
REPOSITORY="packages.wazuh.com/4.x"
|
||||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '["]tag_name["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
||||||
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
||||||
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
||||||
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
# Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
|
||||||
FROM amazonlinux:2023.3.20240131.0
|
FROM amazonlinux:2023.3.20240219.0
|
||||||
|
|
||||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||||
|
|
||||||
@@ -25,14 +25,12 @@ RUN yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y && \
|
|||||||
yum clean all && \
|
yum clean all && \
|
||||||
chmod 775 /filebeat_module.sh && \
|
chmod 775 /filebeat_module.sh && \
|
||||||
source /filebeat_module.sh && \
|
source /filebeat_module.sh && \
|
||||||
|
rm /filebeat_module.sh && \
|
||||||
curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz \
|
curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz \
|
||||||
-o /tmp/s6-overlay-amd64.tar.gz && \
|
-o /tmp/s6-overlay-amd64.tar.gz && \
|
||||||
tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && \
|
tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && \
|
||||||
tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin && \
|
tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin && \
|
||||||
rm /tmp/s6-overlay-amd64.tar.gz && \
|
rm /tmp/s6-overlay-amd64.tar.gz
|
||||||
chmod 755 /permanent_data.sh && \
|
|
||||||
sync && /permanent_data.sh && \
|
|
||||||
sync && rm /permanent_data.sh
|
|
||||||
|
|
||||||
COPY config/etc/ /etc/
|
COPY config/etc/ /etc/
|
||||||
COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py
|
COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py
|
||||||
@@ -57,7 +55,10 @@ RUN mkdir -p /var/ossec/var/multigroups && \
|
|||||||
chmod 770 /var/ossec/agentless && \
|
chmod 770 /var/ossec/agentless && \
|
||||||
mkdir -p /var/ossec/active-response/bin && \
|
mkdir -p /var/ossec/active-response/bin && \
|
||||||
chown root:wazuh /var/ossec/active-response/bin && \
|
chown root:wazuh /var/ossec/active-response/bin && \
|
||||||
chmod 770 /var/ossec/active-response/bin
|
chmod 770 /var/ossec/active-response/bin && \
|
||||||
|
chmod 755 /permanent_data.sh && \
|
||||||
|
sync && /permanent_data.sh && \
|
||||||
|
sync && rm /permanent_data.sh
|
||||||
|
|
||||||
# Services ports
|
# Services ports
|
||||||
EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp
|
EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
REPOSITORY="packages.wazuh.com/4.x"
|
REPOSITORY="packages.wazuh.com/4.x"
|
||||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '["]tag_name["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
|
||||||
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
|
||||||
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
|
||||||
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
|
||||||
|
|||||||
Reference in New Issue
Block a user