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
@@ -4,12 +4,14 @@ FROM amazonlinux:2023 AS builder
|
||||
ARG WAZUH_VERSION
|
||||
ARG INSTALL_DIR=/usr/share/wazuh-dashboard
|
||||
ARG TARGETARCH
|
||||
ARG wazuh_dashboard_amd64_rpm
|
||||
ARG wazuh_dashboard_arm64_rpm
|
||||
ARG wazuh_dashboard_x86_64_rpm
|
||||
ARG wazuh_dashboard_aarch64_rpm
|
||||
ARG wazuh_config_yml
|
||||
|
||||
# Update and install dependencies
|
||||
RUN URL_VAR="wazuh_dashboard_${TARGETARCH}_rpm" && \
|
||||
RUN RPM_ARCH="x86_64" && \
|
||||
if [ "${TARGETARCH}" = "arm64" ]; then RPM_ARCH="aarch64"; fi && \
|
||||
URL_VAR="wazuh_dashboard_${RPM_ARCH}_rpm" && \
|
||||
dashboard_url="${!URL_VAR}" && \
|
||||
dnf install curl-minimal libcap openssl -y && \
|
||||
curl -o /wazuh-dashboard.rpm "${dashboard_url}" && \
|
||||
|
||||
Reference in New Issue
Block a user