summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-05-10 16:29:02 +0200
committerMS <ms@taler.net>2023-05-10 16:29:27 +0200
commitfd4bd5ebb86906a9c8ecc4d4abc440d6a0b1fb4d (patch)
tree7c355dd5c0fc987a3e2f08741fce343e396b2c09
parent9e6339c8c54b1580a04ab08362faa1195cce4f3c (diff)
downloaddeployment-fd4bd5ebb86906a9c8ecc4d4abc440d6a0b1fb4d.tar.gz
deployment-fd4bd5ebb86906a9c8ecc4d4abc440d6a0b1fb4d.tar.bz2
deployment-fd4bd5ebb86906a9c8ecc4d4abc440d6a0b1fb4d.zip
NLnet task2 Dockerfile.
-rw-r--r--nlnet/task2/Dockerfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/nlnet/task2/Dockerfile b/nlnet/task2/Dockerfile
new file mode 100644
index 0000000..7ab3a34
--- /dev/null
+++ b/nlnet/task2/Dockerfile
@@ -0,0 +1,28 @@
+FROM debian:stable
+
+RUN apt-get update
+RUN apt-get install -y git
+
+ # python3-pip
+# Libeufin Dependencies
+RUN apt-get install -y openjdk-17-jre
+# Installation
+RUN git clone git://git.taler.net/libeufin
+WORKDIR /libeufin
+RUN ./bootstrap
+RUN apt-get install -y python3-venv
+RUN apt-get install -y make
+RUN ./configure --prefix=/usr/local
+RUN make install
+# FIXME: move to the deps block.
+RUN apt-get install -y postgresql sudo
+RUN grep -v ^host.*all /etc/postgresql/13/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/13/main/pg_hba.conf
+# CMD bash
+RUN apt-get install -y jq curl
+CMD service postgresql start && \
+ sudo -u postgres createuser -s root && \
+ createdb -h /var/run/postgresql libeufincheck && \
+ make check