update base and fix wazuh manager build

This commit is contained in:
vcerenu
2024-02-29 11:11:59 -03:00
parent 0de952d1b3
commit 992fa82f6d
7 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# 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_TAG_REVISION
@@ -29,7 +29,7 @@ RUN bash config.sh
# Add entrypoint
################################################################################
FROM amazonlinux:2023.3.20240131.0
FROM amazonlinux:2023.3.20240219.0
ENV USER="wazuh-indexer" \
GROUP="wazuh-indexer" \
@@ -23,7 +23,7 @@ rm -rf ${INSTALLATION_DIR}/
## variables
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)
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)