From 9c21a671d1f82ceee4cf3cca933a8974242d3087 Mon Sep 17 00:00:00 2001 From: mezned Date: Thu, 16 Jan 2025 03:12:14 +0100 Subject: [PATCH 1/3] Update freqtrade-NFIx5/Dockerfile --- freqtrade-NFIx5/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/freqtrade-NFIx5/Dockerfile b/freqtrade-NFIx5/Dockerfile index 0e9c855..d5ac89e 100644 --- a/freqtrade-NFIx5/Dockerfile +++ b/freqtrade-NFIx5/Dockerfile @@ -46,7 +46,12 @@ RUN apk add --no-cache \ bzip2-dev \ lz4-dev \ zstd-dev \ - curl-dev + curl-dev \ + boost-dev \ + apache-arrow-dev \ + apache-arrow-static \ + apache-arrow-glib-dev \ + apache-arrow-glib-static # Upgrade pip to the latest version RUN pip install --upgrade pip setuptools wheel setuptools_scm cython From 22626c12feea84d729976520c05cbf8b394bee1a Mon Sep 17 00:00:00 2001 From: mezned Date: Thu, 16 Jan 2025 03:19:32 +0100 Subject: [PATCH 2/3] Update freqtrade-NFIx5/Dockerfile --- freqtrade-NFIx5/Dockerfile | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/freqtrade-NFIx5/Dockerfile b/freqtrade-NFIx5/Dockerfile index d5ac89e..51d1fb9 100644 --- a/freqtrade-NFIx5/Dockerfile +++ b/freqtrade-NFIx5/Dockerfile @@ -47,11 +47,34 @@ RUN apk add --no-cache \ lz4-dev \ zstd-dev \ curl-dev \ - boost-dev \ - apache-arrow-dev \ - apache-arrow-static \ - apache-arrow-glib-dev \ - apache-arrow-glib-static + boost-dev + +# Clone the Apache Arrow source code +RUN git clone https://github.com/apache/arrow.git /arrow + +# Build and install Apache Arrow +WORKDIR /arrow/cpp +RUN mkdir -p build && cd build && \ + cmake -GNinja \ + -DARROW_PARQUET=ON \ + -DARROW_PYTHON=ON \ + -DARROW_DATASET=ON \ + -DARROW_FILESYSTEM=ON \ + -DARROW_CSV=ON \ + -DARROW_WITH_SNAPPY=ON \ + -DARROW_WITH_LZ4=ON \ + -DARROW_WITH_ZSTD=ON \ + -DARROW_JSON=ON \ + -DARROW_WITH_BZ2=ON \ + -DARROW_BUILD_STATIC=ON \ + -DARROW_BUILD_SHARED=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local .. && \ + ninja && \ + ninja install + +# Cleanup Arrow source to reduce image size +RUN rm -rf /arrow # Upgrade pip to the latest version RUN pip install --upgrade pip setuptools wheel setuptools_scm cython From 75a0314551317d8689955cf54bd31cef4640cb10 Mon Sep 17 00:00:00 2001 From: mezned Date: Thu, 16 Jan 2025 03:33:14 +0100 Subject: [PATCH 3/3] Update freqtrade-NFIx5/Dockerfile --- freqtrade-NFIx5/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade-NFIx5/Dockerfile b/freqtrade-NFIx5/Dockerfile index 51d1fb9..6c8223b 100644 --- a/freqtrade-NFIx5/Dockerfile +++ b/freqtrade-NFIx5/Dockerfile @@ -22,6 +22,7 @@ RUN apk add --no-cache \ g++ \ make \ cmake \ + ninja \ musl-dev \ linux-headers \ python3 \