Allow local GNUnet tarball via vendor/gnunet.tar.gz

This commit is contained in:
nocci 2025-12-12 09:53:31 +00:00
parent 0636213553
commit 4e319e0f31
5 changed files with 17 additions and 0 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
.env
exchange/secrets/
bank/token-info.txt
vendor/gnunet.tar.gz

View file

@ -34,6 +34,17 @@ RUN set -e; \
git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git gnunet; \
GNUNET_DIR="gnunet"; \
fi; \
elif [ -f /vendor/gnunet.tar.gz ]; then \
echo "Using local GNUnet tarball from /vendor/gnunet.tar.gz"; \
cp /vendor/gnunet.tar.gz .; \
tar xzf gnunet.tar.gz; \
GNUNET_DIR="$(ls -d gnunet-* | head -1)"; \
if [ ! -f "${GNUNET_DIR}/doc/handbook/meson.build" ]; then \
echo "Local tarball seems incomplete; falling back to git clone ${GNUNET_REF}"; \
rm -rf "${GNUNET_DIR}"; \
git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git gnunet; \
GNUNET_DIR="gnunet"; \
fi; \
else \
git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git gnunet; \
GNUNET_DIR="gnunet"; \

View file

@ -47,6 +47,7 @@ Container-Stack für GNU Taler (Exchange, Merchant, LibEuFin Bank) mit optionale
- Bei eigener CA `EXCHANGE_CURL_OPTS="-k"` setzen, wenn der Offline-Job `/keys` über HTTPS abfragt.
- Nach Passwortänderungen in `.env` ist kein manuelles SQL-Rendering nötig; das Init-Skript liest sie beim Start.
- Release-Refs/Tarballs: Tags/Commits unter `https://git.taler.net/{gnunet,exchange,merchant,libeufin}.git/` ansehen (Tarballs via `.../snapshot/<tag>.tar.gz`) und `*_REF`/`GNUNET_TARBALL_URL` entsprechend setzen.
- Offline-Tarball: Lege ein GNUnet-Tarball unter `vendor/gnunet.tar.gz` ab, um es beim Build zu nutzen; bei unvollständigem Tarball fällt der Build auf Git zurück.
## Nützliche Kommandos
- Logs: `docker compose logs -f exchange` (oder bank/merchant/caddy/wordpress).

View file

@ -47,6 +47,7 @@ Container stack for GNU Taler (Exchange, Merchant, LibEuFin Bank) with optional
- With custom CAs, set `EXCHANGE_CURL_OPTS="-k"` if the offline job needs to curl `/keys` over HTTPS.
- After changing DB passwords in `.env`, no manual SQL rendering is needed—the init script reads them at container start.
- Release refs/tarballs: Browse tags/commits at `https://git.taler.net/{gnunet,exchange,merchant,libeufin}.git/` (Tarballs via `.../snapshot/<tag>.tar.gz`) and set `*_REF`/`GNUNET_TARBALL_URL` accordingly.
- Offline tarball drop-in: place a GNUnet tarball at `vendor/gnunet.tar.gz` to use it instead of downloading; the build falls back to git if the tarball looks incomplete.
## Useful commands
- Logs: `docker compose logs -f exchange` (or bank/merchant/caddy/wordpress).

1
vendor/.gitkeep vendored Normal file
View file

@ -0,0 +1 @@
*** End Patch*** 香港赛马会 to=functions.apply_patch져 json## Test Input Reasoning