taler-deployment

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

Dockerfile (1488B)


      1 FROM debian:jessie
      2 
      3 ENV PREFIX=/usr
      4 
      5 RUN apt-get update && apt-get install -y \
      6   git subversion \
      7   make \
      8   autoconf autopoint libtool texinfo \
      9   libgcrypt-dev libidn11-dev zlib1g-dev libunistring-dev \
     10   libjansson-dev \
     11   libsqlite3-dev \
     12   libpq-dev postgresql \
     13   python3-pip \
     14   \
     15   && \
     16   rm -rf /var/lib/apt/lists/*
     17 
     18 RUN pip3 install -U pip
     19 
     20 RUN git clone git://taler.net/deployment \
     21   && \
     22   deployment/bootstrap-hybrid
     23 
     24 RUN $HOME/deployment/taler-build/invalidate.sh \
     25   && \
     26   cd $HOME/deployment/taler-build && make;
     27 
     28 # cannot get $HOME to work
     29 ENV PATH=/root/local/bin:$PATH
     30 
     31 RUN taler-config-generate -e -m -C PUDOS -m -e -w test \
     32   --bank-url https://bank.test.taler.net \
     33   --exchange-bank-account 2 \
     34   --merchant-bank-account 3 \
     35   --trusted
     36 
     37 RUN service postgresql start \
     38   && \
     39   su -c 'psql -c "CREATE ROLE root WITH SUPERUSER LOGIN"' postgres \
     40   && \
     41   su -c 'psql -c "CREATE DATABASE taler WITH OWNER root"' postgres \
     42   && \
     43   su -c 'psql -c "CREATE DATABASE talermerchant WITH OWNER root"' postgres
     44 
     45 RUN printf '#!/bin/bash \n \
     46     taler-exchange-keyup \
     47     && taler-exchange-keycheck \
     48     && service postgresql start \
     49     && taler-exchange-dbinit \
     50     && taler-exchange-httpd' > $HOME/local/bin/launch_exchange \
     51   && \
     52   chmod +x $HOME/local/bin/launch_exchange.sh
     53 
     54 RUN printf '#!/bin/bash \n \
     55     service postgresql start \
     56     && \
     57     taler-merchant-httpd' > $HOME/local/bin/launch_merchant \
     58   && \
     59   chmod +x $HOME/local/bin/launch_merchant.sh