taler-deployment

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

commit d32aa3b94039eda3ee826840164fc30548563a0f
parent a80c7c03be8d42ca40ae0868b86b50f8914ce5b9
Author: MS <ms@taler.net>
Date:   Mon, 27 Nov 2023 15:02:16 +0100

task4: enabling conversion

Diffstat:
Mnlnet/task4/Dockerfile | 5++---
Mnlnet/task4/start.sh | 16+++++++++++++---
2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/nlnet/task4/Dockerfile b/nlnet/task4/Dockerfile @@ -32,12 +32,11 @@ RUN apt-get install -y \ # Installation RUN git clone git://git.taler.net/libeufin WORKDIR /libeufin -# RUN git fetch && git checkout MONITOR-TAG +RUN git fetch && git checkout 746756605b41d22e49454e95b38338b6fdb07059 RUN ./bootstrap RUN ./configure --prefix=/usr/local RUN make install -RUN apt-get install -y socat -RUN apt-get install -y netcat-openbsd +RUN make install-nexus WORKDIR / COPY start.sh / ENTRYPOINT ["/start.sh"] diff --git a/nlnet/task4/start.sh b/nlnet/task4/start.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -eu +set -eux service postgresql start sudo -u postgres createuser -s root @@ -11,7 +11,17 @@ cat << EOF > /usr/bin/taler-config echo postgresql:///libeufinbank EOF chmod +x /usr/bin/taler-config +sed -i 's/ALLOW_CONVERSION = no/ALLOW_CONVERSION = yes/' \ + /libeufin/contrib/libeufin-bank.conf +cat << EOF >> /libeufin/contrib/libeufin-bank.conf + +[nexus-ebics] +currency = EUR +[nexus-postgres] +config = postgresql:///libeufinbank +EOF libeufin-bank dbinit -c /libeufin/contrib/libeufin-bank.conf -/libeufin/contrib/populate-stats.sh /libeufin/contrib/libeufin-bank.conf +libeufin-nexus dbinit -c /libeufin/contrib/libeufin-bank.conf +/libeufin/contrib/populate-stats.sh /libeufin/contrib/libeufin-bank.conf --one libeufin-bank passwd admin nlnet -libeufin-bank serve +libeufin-bank serve -c /libeufin/contrib/libeufin-bank.conf