forked from wazuh/wazuh-docker
Standarize Artifact URL keys (#2286)
* Standardize artifact URL keys for Docker builds * Changelog update --------- Co-authored-by: Gonzalo Acuña <teddytpc1@gmail.com> Co-authored-by: Gonzalo Acuña <33964202+teddytpc1@users.noreply.github.com>
This commit is contained in:
co-authored by
Gonzalo Acuña
Gonzalo Acuña
parent
0eb0d7914f
commit
8eca20a5ae
@@ -3,14 +3,16 @@ FROM amazonlinux:2023 AS builder
|
||||
|
||||
ARG WAZUH_VERSION
|
||||
ARG TARGETARCH
|
||||
ARG wazuh_indexer_amd64_rpm
|
||||
ARG wazuh_indexer_arm64_rpm
|
||||
ARG wazuh_indexer_x86_64_rpm
|
||||
ARG wazuh_indexer_aarch64_rpm
|
||||
ARG wazuh_certs_tool
|
||||
ARG wazuh_config_yml
|
||||
|
||||
COPY config/config.sh .
|
||||
|
||||
RUN URL_VAR="wazuh_indexer_${TARGETARCH}_rpm" && \
|
||||
RUN RPM_ARCH="x86_64" && \
|
||||
if [ "${TARGETARCH}" = "arm64" ]; then RPM_ARCH="aarch64"; fi && \
|
||||
URL_VAR="wazuh_indexer_${RPM_ARCH}_rpm" && \
|
||||
indexer_url="${!URL_VAR}" && \
|
||||
dnf install curl-minimal openssl xz tar findutils shadow-utils -y &&\
|
||||
curl -o /wazuh-indexer.rpm "${indexer_url}" && \
|
||||
|
||||
Reference in New Issue
Block a user