[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: Docker launcher.
From: |
gnunet |
Subject: |
[libeufin] 01/02: Docker launcher. |
Date: |
Tue, 26 Sep 2023 09:27:54 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 0d7a6e273e177a53dedb1112d68cccd5387e25a2
Author: MS <ms@taler.net>
AuthorDate: Tue Sep 26 09:25:21 2023 +0200
Docker launcher.
This Docker image pulls the latest LibEuFin version,
installs it, and tries to launch it. Its main purpose
is debugging.
---
contrib/docker-launcher/Dockerfile | 20 ++++++++++++++++++++
contrib/docker-launcher/launch-bank.sh | 7 +++++++
2 files changed, 27 insertions(+)
diff --git a/contrib/docker-launcher/Dockerfile
b/contrib/docker-launcher/Dockerfile
new file mode 100644
index 00000000..965aa0fb
--- /dev/null
+++ b/contrib/docker-launcher/Dockerfile
@@ -0,0 +1,20 @@
+FROM debian:stable
+
+RUN apt-get update
+RUN apt-get install -y openjdk-17-jre git curl postgresql python3-pip
+
+# Installation
+RUN git clone git://git.taler.net/libeufin
+WORKDIR /libeufin
+RUN ./bootstrap
+RUN ./configure --prefix=/usr/local
+RUN make install
+WORKDIR /
+COPY launch-bank.sh /launch-bank.sh
+RUN apt-get install -y sudo
+RUN grep -v ^host.*all /etc/postgresql/15/main/pg_hba.conf >
/tmp/pg_hba_buf.txt
+RUN echo "host libeufincheck all 127.0.0.1/32 trust" >> /tmp/pg_hba_buf.txt
+RUN echo "host libeufincheck all ::1/128 trust" >> /tmp/pg_hba_buf.txt
+RUN cp /tmp/pg_hba_buf.txt /etc/postgresql/15/main/pg_hba.conf
+
+ENTRYPOINT ["/launch-bank.sh"]
diff --git a/contrib/docker-launcher/launch-bank.sh
b/contrib/docker-launcher/launch-bank.sh
new file mode 100755
index 00000000..35b510fb
--- /dev/null
+++ b/contrib/docker-launcher/launch-bank.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+service postgresql start
+sudo -u postgres createuser -s root
+createdb libeufinbank
+libeufin-bank dbinit
+libeufin-bank serve
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.