summaryrefslogtreecommitdiff
path: root/docker/exchange/entry_point.sh
blob: b73396c883507633cbdc1c9ed47341013f4ccc3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
 
su -c "createuser --host=dbcontainer root" - postgres \
&& su -c "createdb --host=dbcontainer talertest" - postgres \
&& mkdir -p $HOME/shared-data/exchange/offline-keys/ \
&& gnunet-ecc -g1 $HOME/shared-data/exchange/offline-keys/master.priv \
&& taler-config -s exchangedb-postgres -o db_conn_str \
   -V "dbname=talertest host=dbcontainer" \
&& taler-config -s exchange -o serve -V tcp \
&& taler-config -s exchange-admin -o serve -V tcp \
&& taler-config -s exchange -o master_public_key \
   -V $(gnunet-ecc -p $HOME/shared-data/exchange/offline-keys/master.priv) \
&& $HOME/deployment/bin/taler-deployment-config-sign \
&& $HOME/deployment/bin/taler-deployment-keyup \
&& taler-exchange-dbinit -r \
&& taler-exchange-httpd