taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 1b893b691f6dfcea09affc0b2c7a2dbcdea69bbc
parent 15958dfa5347b6be0a707e2392a28d5cef8e3fea
Author: MS <ms@taler.net>
Date:   Tue, 27 Sep 2022 20:41:49 +0200

DB wait loop

Diffstat:
Mdocker/hybrid/images/exchange/startup.sh | 12+++++++++++-
Mdocker/hybrid/images/postgres/init.sql | 2+-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/docker/hybrid/images/exchange/startup.sh b/docker/hybrid/images/exchange/startup.sh @@ -1,10 +1,20 @@ #!/bin/bash +set -eu export LD_LIBRARY_PATH=/usr/local/lib sed -i 's/\${EXCHANGE_URL}/http:\/\/exchange.example.com\//' /config/taler.conf -taler-exchange-dbinit -c /config/taler.conf --reset # &> /dev/null +while ! pg_isready -h talerdb -d taler; do + echo DB not ready yet. + sleep 2 +done +echo Now DB is ready. + +# Make sure we have the right to connect +echo "" | psql -h talerdb -d taler + +taler-exchange-dbinit -L DEBUG -c /config/taler.conf # --reset # &> /dev/null #taler-exchange-secmod-eddsa -c /config/taler.conf & #taler-exchange-secmod-rsa -c /config/taler.conf & diff --git a/docker/hybrid/images/postgres/init.sql b/docker/hybrid/images/postgres/init.sql @@ -1,2 +1,2 @@ -CREATE ROLE root SUPERUSER; +CREATE ROLE root SUPERUSER LOGIN; CREATE DATABASE taler WITH OWNER root;