From 1872bac1b48505618e99424553b7c44e1f1ec2f1 Mon Sep 17 00:00:00 2001 From: quebim Date: Mon, 25 Nov 2024 08:27:09 -0300 Subject: [PATCH] Add plugins and reporting built and fix ownership --- docker/builder/Dockerfile | 121 ++++++++++++++++++++++---------------- 1 file changed, 69 insertions(+), 52 deletions(-) diff --git a/docker/builder/Dockerfile b/docker/builder/Dockerfile index 818d231816b30..a4e271208dfad 100644 --- a/docker/builder/Dockerfile +++ b/docker/builder/Dockerfile @@ -7,11 +7,12 @@ ENV DEBIAN_FRONTEND=noninteractive # Update the package list and install necessary tools RUN apt-get update \ && apt-get upgrade -y \ + && apt-get install curl gnupg2 -y \ + && curl -o- https://www.aptly.info/pubkey.txt | apt-key add - \ + && echo "deb http://repo.aptly.info/ squeeze main" | tee -a /etc/apt/sources.list.d/aptly.list \ && apt-get install -y \ wget \ - curl \ unzip \ - gnupg2 \ git \ build-essential \ debmake \ @@ -37,6 +38,12 @@ RUN apt-get update \ libnss3 \ libnspr4 \ libnspr4-dev \ + aptly \ + cpio \ + rpm \ + rpm2cpio \ + maven \ + && dpkg -r lintian \ && rm -rf /var/lib/apt/lists/* # Define build arguments with default values @@ -62,10 +69,8 @@ RUN git clone --branch ${INDEXER_BRANCH} https://github.com/wazuh/wazuh-indexer git clone --branch ${INDEXER_PLUGINS_BRANCH} https://github.com/wazuh/wazuh-indexer-plugins --depth 1 /opt/wazuh-indexer-plugins && \ git clone --branch ${INDEXER_REPORTING_BRANCH} https://github.com/wazuh/wazuh-indexer-reporting --depth 1 /opt/wazuh-indexer-reporting -# Save repositories hashes -RUN cd /opt/wazuh-indexer && indexer_hash=$(git rev-parse --short HEAD) && \ - cd /opt/wazuh-indexer-plugins && plugins_hash=$(git rev-parse --short HEAD) && \ - cd /opt/wazuh-indexer-reporting && reporting_hash=$(git rev-parse --short HEAD) +# Set version env var +ENV VERSION=$(