summaryrefslogtreecommitdiff
path: root/docker/taler-full/Dockerfile
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-05-12 00:07:41 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-05-12 00:07:41 +0200
commit7a66af50f5e94a34e6d2adad0e4b3956d690b431 (patch)
tree315a8b202007bbe4d5af963114b7eeab7b63b443 /docker/taler-full/Dockerfile
parent4617b3110a92a25aafe57e403153184f47e4d7db (diff)
downloaddeployment-7a66af50f5e94a34e6d2adad0e4b3956d690b431.tar.gz
deployment-7a66af50f5e94a34e6d2adad0e4b3956d690b431.tar.bz2
deployment-7a66af50f5e94a34e6d2adad0e4b3956d690b431.zip
adding Dockerfile which builds all Taler components based on the Makefile logic
Diffstat (limited to 'docker/taler-full/Dockerfile')
-rw-r--r--docker/taler-full/Dockerfile75
1 files changed, 48 insertions, 27 deletions
diff --git a/docker/taler-full/Dockerfile b/docker/taler-full/Dockerfile
index cfb529d..af73d5c 100644
--- a/docker/taler-full/Dockerfile
+++ b/docker/taler-full/Dockerfile
@@ -1,38 +1,59 @@
-FROM fldold/gnunet
+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/*
-#
-# Build exchange
-#
-RUN mkdir /build && cd /build && \
- git clone git://taler.net/exchange.git && \
- cd exchange && \
- ./bootstrap && ./configure --prefix=$PREFIX && make && make install && \
- rm -rf /build
-
-#
-# Build merchant
-#
-RUN mkdir /build && cd /build && \
- git clone git://taler.net/merchant.git && \
- cd merchant && \
- ./bootstrap && ./configure --prefix=$PREFIX && make && make install && \
- rm -rf /build
-
RUN pip3 install -U pip
-#
-# Build bank
-#
-RUN mkdir /build && cd /build && \
- git clone git://taler.net/bank.git && \
- cd bank && \
- ./bootstrap && ./configure --prefix=$PREFIX && make && make install && \
- rm -rf /build
+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-uri 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.sh \
+ && \
+ chmod +x $HOME/local/bin/launch_exchange.sh
+
+RUN printf '#!/bin/bash \n \
+ service postgresql start \
+ && \
+ taler-merchant-httpd' > $HOME/local/bin/launch_merchant.sh \
+ && \
+ chmod +x $HOME/local/bin/launch_merchant.sh