summaryrefslogtreecommitdiff
path: root/docker/merchant
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-01-05 12:55:34 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-01-05 12:55:34 +0100
commit573e01b96aef961efd20dfcefde0e5defb8ffb2c (patch)
treedcf766415ce0a6513322c8e4efaeb3b259d55627 /docker/merchant
parent050f022f030daf5488a4a1508189c0fecb27ffdc (diff)
downloaddeployment-573e01b96aef961efd20dfcefde0e5defb8ffb2c.tar.gz
deployment-573e01b96aef961efd20dfcefde0e5defb8ffb2c.tar.bz2
deployment-573e01b96aef961efd20dfcefde0e5defb8ffb2c.zip
Explicit ports
Diffstat (limited to 'docker/merchant')
-rwxr-xr-xdocker/merchant/entry_point.sh13
-rw-r--r--docker/merchant/exchange_pub.txt1
-rw-r--r--docker/merchant/exchange_uri.txt1
3 files changed, 15 insertions, 0 deletions
diff --git a/docker/merchant/entry_point.sh b/docker/merchant/entry_point.sh
new file mode 100755
index 0000000..82f3777
--- /dev/null
+++ b/docker/merchant/entry_point.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+
+(su -c "createuser --host=dbcontainer root" - postgres | exit 0)
+(su -c "createdb --host=dbcontainer talertest" - postgres | exit 0)
+taler-config -s merchantdb-postgres -o config \
+ -V "dbname=talertest host=dbcontainer"
+taler-config -s merchant -o serve -V tcp
+taler-config -s merchant -o port -V 9966
+taler-config -s merchant-exchange-test -o master_key -V $(cat ./exchange_pub.txt)
+taler-config -s merchant-exchange-test -o uri -V $(cat ./exchange_uri.txt)
+taler-exchange-dbinit -r
+taler-exchange-httpd
diff --git a/docker/merchant/exchange_pub.txt b/docker/merchant/exchange_pub.txt
new file mode 100644
index 0000000..69f831b
--- /dev/null
+++ b/docker/merchant/exchange_pub.txt
@@ -0,0 +1 @@
+CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00
diff --git a/docker/merchant/exchange_uri.txt b/docker/merchant/exchange_uri.txt
new file mode 100644
index 0000000..a2f087f
--- /dev/null
+++ b/docker/merchant/exchange_uri.txt
@@ -0,0 +1 @@
+https://exchange.demo.taler.net/