Support gnunet-*.tar.gz in vendor and update docs

This commit is contained in:
nocci 2025-12-12 10:45:03 +00:00
parent 4e319e0f31
commit 10d29fa6d7
4 changed files with 7 additions and 6 deletions

2
.gitignore vendored
View file

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

View file

@ -34,9 +34,10 @@ 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 .; \
elif ls /vendor/gnunet*.tar.gz >/dev/null 2>&1; then \
LOCAL_TARBALL="$(ls /vendor/gnunet*.tar.gz | head -1)"; \
echo "Using local GNUnet tarball from ${LOCAL_TARBALL}"; \
cp "${LOCAL_TARBALL}" gnunet.tar.gz; \
tar xzf gnunet.tar.gz; \
GNUNET_DIR="$(ls -d gnunet-* | head -1)"; \
if [ ! -f "${GNUNET_DIR}/doc/handbook/meson.build" ]; then \

View file

@ -47,7 +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.
- Offline-Tarball: Lege ein GNUnet-Tarball unter `vendor/` (z.B. `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,7 +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.
- Offline tarball drop-in: place a GNUnet tarball under `vendor/` (e.g., `gnunet-*.tar.gz`); the build picks the first match and falls back to git if the tarball looks incomplete.
## Useful commands
- Logs: `docker compose logs -f exchange` (or bank/merchant/caddy/wordpress).