summaryrefslogtreecommitdiff
path: root/historic/docker/taler-full/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'historic/docker/taler-full/Dockerfile')
-rw-r--r--historic/docker/taler-full/Dockerfile59
1 files changed, 59 insertions, 0 deletions
diff --git a/historic/docker/taler-full/Dockerfile b/historic/docker/taler-full/Dockerfile
new file mode 100644
index 0000000..ac01271
--- /dev/null
+++ b/historic/docker/taler-full/Dockerfile
@@ -0,0 +1,59 @@
+FROM debian:jessie
+
+ENV PREFIX=/usr
+
+RUN apt-get update && apt-get install -y \
+ git subversion \
+ make \
+ autoconf autopoint libtool texinfo \
+ libgcrypt-dev libidn11-dev zlib1g-dev libunistring-dev \
+ libjansson-dev \
+ libsqlite3-dev \
+ libpq-dev postgresql \
+ python3-pip \
+ \
+ && \
+ rm -rf /var/lib/apt/lists/*
+
+RUN pip3 install -U pip
+
+RUN git clone git://taler.net/deployment \
+ && \
+ deployment/bootstrap-hybrid
+
+RUN $HOME/deployment/taler-build/invalidate.sh \
+ && \
+ cd $HOME/deployment/taler-build && make;
+
+# cannot get $HOME to work
+ENV PATH=/root/local/bin:$PATH
+
+RUN taler-config-generate -e -m -C PUDOS -m -e -w test \
+ --bank-url https://bank.test.taler.net \
+ --exchange-bank-account 2 \
+ --merchant-bank-account 3 \
+ --trusted
+
+RUN service postgresql start \
+ && \
+ su -c 'psql -c "CREATE ROLE root WITH SUPERUSER LOGIN"' postgres \
+ && \
+ su -c 'psql -c "CREATE DATABASE taler WITH OWNER root"' postgres \
+ && \
+ su -c 'psql -c "CREATE DATABASE talermerchant WITH OWNER root"' postgres
+
+RUN printf '#!/bin/bash \n \
+ taler-exchange-keyup \
+ && taler-exchange-keycheck \
+ && service postgresql start \
+ && taler-exchange-dbinit \
+ && taler-exchange-httpd' > $HOME/local/bin/launch_exchange \
+ && \
+ chmod +x $HOME/local/bin/launch_exchange.sh
+
+RUN printf '#!/bin/bash \n \
+ service postgresql start \
+ && \
+ taler-merchant-httpd' > $HOME/local/bin/launch_merchant \
+ && \
+ chmod +x $HOME/local/bin/launch_merchant.sh