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
@@ -11,10 +11,12 @@ ARG WAZUH_REGISTRATION_SERVER='CHANGE_ENROLL_IP'
|
||||
ARG WAZUH_REGISTRATION_PORT='CHANGE_ENROLL_PORT'
|
||||
ARG WAZUH_AGENT_NAME='CHANGE_AGENT_NAME'
|
||||
ARG TARGETARCH
|
||||
ARG wazuh_agent_amd64_rpm
|
||||
ARG wazuh_agent_arm64_rpm
|
||||
ARG wazuh_agent_x86_64_rpm
|
||||
ARG wazuh_agent_aarch64_rpm
|
||||
|
||||
RUN URL_VAR="wazuh_agent_${TARGETARCH}_rpm" && \
|
||||
RUN RPM_ARCH="x86_64" && \
|
||||
if [ "${TARGETARCH}" = "arm64" ]; then RPM_ARCH="aarch64"; fi && \
|
||||
URL_VAR="wazuh_agent_${RPM_ARCH}_rpm" && \
|
||||
agent_url="${!URL_VAR}" && \
|
||||
dnf install curl-minimal tar gzip procps -y &&\
|
||||
curl -o /wazuh-agent.rpm "${agent_url}" && \
|
||||
|
||||
Reference in New Issue
Block a user