Allow GNUnet tarball builds via GNUNET_TARBALL_URL
This commit is contained in:
parent
e2a71b7d14
commit
6d482237ce
1 changed files with 13 additions and 3 deletions
14
Dockerfile
14
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 && \
|
||||
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
|
||||
./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 && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue