From fd4bd5ebb86906a9c8ecc4d4abc440d6a0b1fb4d Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 10 May 2023 16:29:02 +0200 Subject: NLnet task2 Dockerfile. --- nlnet/task2/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nlnet/task2/Dockerfile 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 -- cgit v1.2.3