From 6d482237ce9c197fd6a4f799f3928f4039fed9ea Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 11 Dec 2025 15:36:55 +0000 Subject: [PATCH] Allow GNUnet tarball builds via GNUNET_TARBALL_URL --- Dockerfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91010aa..b1cfa58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ ARG GNUNET_REF=master ARG EXCHANGE_REF=master ARG MERCHANT_REF=master ARG LIBEUFIN_REF=master +# Optional tarball URLs (when set, git clone is skipped) +ARG GNUNET_TARBALL_URL= RUN apt-get update && apt-get install -y \ build-essential git automake libtool pkg-config \ @@ -16,9 +18,17 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # GNUnet (falls nicht schon systemweit neu genug) -RUN git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git /src/gnunet && \ - cd /src/gnunet && ./bootstrap && \ - ./configure --prefix=/usr && make -j$(nproc) && make install +RUN if [ -n "${GNUNET_TARBALL_URL}" ]; then \ + mkdir -p /src && cd /src && \ + curl -L "${GNUNET_TARBALL_URL}" -o gnunet.tar.gz && \ + tar xzf gnunet.tar.gz && \ + cd gnunet-* && ./bootstrap && \ + ./configure --prefix=/usr && make -j$(nproc) && make install; \ + else \ + git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git /src/gnunet && \ + cd /src/gnunet && ./bootstrap && \ + ./configure --prefix=/usr && make -j$(nproc) && make install; \ + fi # Taler Exchange + Merchant RUN git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange && \