Init git repo when building exchange/merchant from tarball

This commit is contained in:
nocci 2025-12-12 11:36:05 +00:00
parent afe3090506
commit 96465d6267

View file

@ -85,6 +85,9 @@ RUN set -e; \
git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange; \ git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange; \
EXCHANGE_DIR="/src/exchange"; \ EXCHANGE_DIR="/src/exchange"; \
fi; \ fi; \
if [ ! -d "${EXCHANGE_DIR}/.git" ]; then \
(cd "${EXCHANGE_DIR}" && git init >/dev/null 2>&1); \
fi; \
cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \ cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \
./configure --prefix=/usr && make -j$(nproc) && make install; \ ./configure --prefix=/usr && make -j$(nproc) && make install; \
# Merchant # Merchant
@ -106,6 +109,9 @@ RUN set -e; \
git clone --depth 1 --branch "${MERCHANT_REF}" https://git.taler.net/merchant.git /src/merchant; \ git clone --depth 1 --branch "${MERCHANT_REF}" https://git.taler.net/merchant.git /src/merchant; \
MERCHANT_DIR="/src/merchant"; \ MERCHANT_DIR="/src/merchant"; \
fi; \ fi; \
if [ ! -d "${MERCHANT_DIR}/.git" ]; then \
(cd "${MERCHANT_DIR}" && git init >/dev/null 2>&1); \
fi; \
cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \ cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \
./configure --prefix=/usr && make -j$(nproc) && make install ./configure --prefix=/usr && make -j$(nproc) && make install