Skip to content

Commit

Permalink
feat: remove Dockerfile for unsupported platforms
Browse files Browse the repository at this point in the history
We should add them as we need them, analyzing each Dockerfile
in a case by case basis, so we don't include unnecessary steps
nor packages, custom builds and installations.

Having these files here, brought from 4.x, invites to leave them
unmodified.
  • Loading branch information
jr0me authored and mjcr99 committed Feb 13, 2025
1 parent 5147202 commit bca60a2
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 356 deletions.
9 changes: 0 additions & 9 deletions packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,15 @@ set_vcpkg_remote_binary_cache(){
git checkout "2024.09.30"

export VCPKG_BINARY_SOURCES="clear;nuget,GitHub,readwrite"
<<<<<<< HEAD
./bootstrap-vcpkg.sh
mono `./vcpkg fetch nuget | tail -n 1` \
=======
NUGET_PATH="/usr/local/bin/nuget"
curl -o $NUGET_PATH https://dist.nuget.org/win-x86-commandline/v6.10.2/nuget.exe
mono $NUGET_PATH \
>>>>>>> 79135260c (feat: enable arm64 packages building)
sources add \
-source "https://nuget.pkg.github.com/wazuh/index.json" \
-name "GitHub" \
-username "wazuh" \
-password "$vcpkg_token"
<<<<<<< HEAD
mono `./vcpkg fetch nuget | tail -n 1` \
=======
mono $NUGET_PATH \
>>>>>>> 79135260c (feat: enable arm64 packages building)
setapikey "$vcpkg_token" \
-source "https://nuget.pkg.github.com/wazuh/index.json"

Expand Down
39 changes: 0 additions & 39 deletions packages/debs/armhf/agent/Dockerfile

This file was deleted.

38 changes: 0 additions & 38 deletions packages/debs/i386/agent/Dockerfile

This file was deleted.

38 changes: 0 additions & 38 deletions packages/debs/ppc64le/agent/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions packages/rpms/arm64/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,9 @@ RUN mkdir -p /usr/local/var/lib/rpm && \
cp /var/lib/rpm/Packages /usr/local/var/lib/rpm/Packages && \
/usr/local/bin/rpm --rebuilddb && rm -rf /root/rpmbuild

<<<<<<< HEAD
RUN git clone https://github.com/mono/mono.git && cd mono && ./autogen.sh --prefix=/usr/local && \
make -j $(nproc) && make install -j $(nproc) && cd .. && rm -rf mono && cert-sync /etc/ssl/certs/ca-bundle.crt

RUN yum install ninja-build -y
=======
RUN rpmkeys --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" && \
su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo' && \
yum install mono-devel -y

# Needs to be built later, version might be lower than vcpkg requires
RUN yum install -y ninja-build
>>>>>>> deac4c5a3 (feat: remove no longer need packages from Dockerfiles)
59 changes: 0 additions & 59 deletions packages/rpms/armhf/agent/Dockerfile

This file was deleted.

47 changes: 0 additions & 47 deletions packages/rpms/i386/agent/CentOS-Base.repo

This file was deleted.

66 changes: 0 additions & 66 deletions packages/rpms/i386/agent/Dockerfile

This file was deleted.

53 changes: 0 additions & 53 deletions packages/rpms/ppc64le/agent/Dockerfile

This file was deleted.

0 comments on commit bca60a2

Please sign in to comment.