From 2c6c89fd486a8710297d71b14caabb3f3ff466a6 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 10 May 2016 18:58:33 +0200 Subject: adding bootstrapper compatible with taler-config-generator --- bootstrap-hybrid | 35 +++++++++++++++++++++++++++++++++++ docker/gnunet/Dockerfile | 1 - 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100755 bootstrap-hybrid diff --git a/bootstrap-hybrid b/bootstrap-hybrid new file mode 100755 index 0000000..1e9c1d7 --- /dev/null +++ b/bootstrap-hybrid @@ -0,0 +1,35 @@ +#!/bin/bash + +# Do not hardcode @test or @demo configuration values. +# Aimed to be called by a Dockerfile and get those values +# set by taler-config utility. It also make use of the +# taler-config-generator utility. May obsolete bootstrap-{test,demo}. + +set -eu + +base=$HOME + +mkdir -p $base + +cd $base + +if ! test -d $base/gnunet; then + svn checkout https://gnunet.org/svn/gnunet +fi + +if ! test -d $base/libmicrohttpd; then + svn checkout https://gnunet.org/svn/libmicrohttpd +fi + +for component in bank merchant gnurl landing exchange merchant-frontends deployment; do + if ! test -d $base/$component; then + git clone /var/git/$component.git + fi +done + +cat >$base/activate <