Skip to content

Commit

Permalink
feat: enable arm64 packages building
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcr99 committed Jan 17, 2025
1 parent 9cf8fe3 commit 237e35a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 4 additions & 3 deletions packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ set_vcpkg_remote_binary_cache(){
if [[ $(mono --version 2>/dev/null) =~ [0-9] ]]; then
echo "mono already installed, proceeding"
export VCPKG_BINARY_SOURCES="clear;nuget,GitHub,readwrite"
$sources_dir/src/vcpkg/bootstrap-vcpkg.sh
mono `$sources_dir/src/vcpkg/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 \
sources add \
-source "https://nuget.pkg.github.com/wazuh/index.json" \
-name "GitHub" \
-username "wazuh" \
-password "$vcpkg_token"
mono `$sources_dir/src/vcpkg/vcpkg fetch nuget | tail -n 1` \
mono $NUGET_PATH \
setapikey "$vcpkg_token" \
-source "https://nuget.pkg.github.com/wazuh/index.json"
else
Expand Down
5 changes: 2 additions & 3 deletions packages/rpms/amd64/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN yum install -y gcc make wget git \
openssl-devel libxml2-devel kexec-tools elfutils \
libarchive-devel elfutils-libelf-devel \
patchelf elfutils-devel libgcrypt-devel \
file-devel gettext-devel curl-devel systemd-devel
file-devel gettext-devel curl-devel systemd-devel \
ninja-build which python3

RUN yum-builddep python34 -y

Expand Down Expand Up @@ -91,5 +92,3 @@ RUN mkdir -p /usr/local/var/lib/rpm && \
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

RUN curl -o /usr/local/bin/nuget https://dist.nuget.org/win-x86-commandline/v6.10.2/nuget.exe
8 changes: 4 additions & 4 deletions packages/rpms/arm64/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ RUN yum install -y gcc make wget git \
openssl-devel libxml2-devel kexec-tools elfutils \
libarchive-devel elfutils-libelf-devel \
patchelf elfutils-devel libgcrypt-devel \
file-devel gettext-devel curl-devel systemd-devel
file-devel gettext-devel curl-devel systemd-devel \
ninja-build which python3

RUN yum-builddep python34 -y

Expand Down Expand Up @@ -86,6 +87,5 @@ 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

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
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

0 comments on commit 237e35a

Please sign in to comment.