summaryrefslogtreecommitdiff
path: root/nlnet/task2/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'nlnet/task2/Dockerfile')
-rw-r--r--nlnet/task2/Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/nlnet/task2/Dockerfile b/nlnet/task2/Dockerfile
new file mode 100644
index 0000000..e7cc048
--- /dev/null
+++ b/nlnet/task2/Dockerfile
@@ -0,0 +1,29 @@
+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 git fetch && git checkout a52cf289234683c4ff492cd8b508cfb6c85ca1e8
+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