taler-deployment

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

commit b7f0dfec8a1fe7f9aa6e4a18947812c4a4524762
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sun, 28 Feb 2016 22:27:07 +0100

add old deployment scripts

Diffstat:
Abuild_merchant.sh | 14++++++++++++++
Abuild_mint.sh | 15+++++++++++++++
Acrontab | 7+++++++
Alaunch_merchant.sh | 24++++++++++++++++++++++++
Alaunch_mint.sh | 19+++++++++++++++++++
5 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/build_merchant.sh b/build_merchant.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -eu + +cd $HOME/merchant +make clean || true +./bootstrap +./configure CFLAGS='-ggdb -O0' \ + --prefix=$HOME/local --with-gnunet=$HOME/local \ + --with-mint=$HOME/local \ + --with-microhttpd=$HOME/local \ + --enable-logging=verbose +make +make install diff --git a/build_mint.sh b/build_mint.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -eu + +cd $HOME/mint +make clean || true +./bootstrap +./configure CFLAGS='-ggdb -O0' \ + --with-libgnurl=$HOME/local \ + --with-microhttpd=$HOME/local \ + --prefix=$HOME/local --with-gnunet=$HOME/local \ + --enable-logging=verbose +make +make install + diff --git a/crontab b/crontab @@ -0,0 +1,7 @@ +LD_LIBRARY_PATH=/home/demo/local/lib/taler +# m h dom mon dow command +@monthly cd $HOME/gnunet/; git pull &>/dev/null; make &>/dev/null; make install &>/dev/null; +3 * * * * cd $HOME/mint; git pull &>/dev/null; $HOME/build_mint.sh &>/dev/null; $HOME/launch_mint.sh mint &>/dev/null; +3 * * * * cd $HOME/wallet; git pull &>/dev/null; # WARNING this action does update the landing page +13 * * * * cd $HOME/merchant/; git pull &>/dev/null; $HOME/build_merchant.sh &>/dev/null; $HOME/launch_merchant.sh &>/dev/null; +*/13 * * * * cd $HOME/bank/; git pull &>/dev/null; ./deploy.sh $HOME/; cd $HOME; ./django_wsgi.sh &>/dev/null diff --git a/launch_merchant.sh b/launch_merchant.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -eu + +ulimit -c unlimited + +pids=$(pidof taler-merchant-httpd || true) +if [[ ! -z "$pids" ]]; then + kill $pids || true + sleep 1 +fi +pids=$(pidof taler-merchant-httpd || true) +if [[ ! -z "$pids" ]]; then + kill -9 $pids || true +fi + +echo launching merchant + +cd $HOME + +nohup $HOME/local/bin/taler-merchant-httpd -t -c $HOME/merchant.conf | tee $HOME/nohup.merchant.out & +disown + +echo "Merchant PID:" $(pgrep -a -U $(whoami) taler-merchant) diff --git a/launch_mint.sh b/launch_mint.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -eu + +ulimit -c unlimited + +pids=$(pidof taler-mint-httpd || true) +if [[ ! -z "$pids" ]]; then + kill $pids || true + sleep 1 + kill -9 $pids || true +fi + +echo launching mint + +cd $HOME + +nohup $HOME/local/bin/taler-mint-httpd -d $HOME/mint_config | tee $HOME/nohup.mint.out & +disown