taler-deployment

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

commit 4e80d73be1188907b3310e5a9bdc028d17a53d41
parent ce67e1eb80a1c7a76b68cee6fe1dcb85509cb4ae
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 17 Feb 2020 21:30:01 +0100

add build rules for sync

Diffstat:
Mbin/taler-config-generate | 1+
Mbin/taler-deployment | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/bin/taler-config-generate b/bin/taler-config-generate @@ -282,6 +282,7 @@ def main(currency, envname, outdir, exchange_pub, twisted): sc = ConfigFile(envname, currency, exchange_pub, twisted, "sync.conf") sc.cfg_put("sync", "annual_fee", sc.currency+":0.1") sc.cfg_put("sync", "serve", "unix") + sc.cfg_put("syncdb-postgres", "config", "postgres:///taler{}" % envname) sc.cfg_put("sync", "unixpath", "$HOME/sockets/sync.http") config_files.append(sc) diff --git a/bin/taler-deployment b/bin/taler-deployment @@ -188,6 +188,23 @@ def build_merchant(r, p): subprocess.run(["make", "install"], check=True) (p / "taler-buildstamp").touch() +def build_sync(r, p): + update_checkout(r, p) + subprocess.run(["./bootstrap"], check=True) + pfx = Path.home() / "local" + default_configure( + "CFLAGS=-ggdb -O0", + "--enable-logging=verbose", + f"--with-libgnurl={pfx}", + f"--with-microhttpd={pfx}", + f"--with-exchange={pfx}", + f"--with-merchant={pfx}", + f"--with-gnunet={pfx}", + "--disable-doc", + ) + subprocess.run(["make", "install"], check=True) + (p / "taler-buildstamp").touch() + def build_bank(r, p): update_checkout(r, p) @@ -333,6 +350,12 @@ def get_repos(envname): ["exchange", "libmicrohttpd"], build_merchant, ), + Repo( + "sync", + "git://git.taler.net/sync", + ["exchange", "merchant", "libmicrohttpd"], + build_sync, + ), Repo("bank", "git://git.taler.net/bank", [], build_bank), Repo("landing", "git://git.taler.net/landing", [], build_landing), Repo("donations", "git://git.taler.net/donations", [], build_donations),