aboutsummaryrefslogtreecommitdiff
path: root/contrib/ci/docker
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ci/docker')
-rw-r--r--contrib/ci/docker/Dockerfile57
-rw-r--r--contrib/ci/docker/docker-entrypoint.sh3
2 files changed, 60 insertions, 0 deletions
diff --git a/contrib/ci/docker/Dockerfile b/contrib/ci/docker/Dockerfile
new file mode 100644
index 000000000..974e41a5e
--- /dev/null
+++ b/contrib/ci/docker/Dockerfile
@@ -0,0 +1,57 @@
1from fedora:26
2
3# Install the required build tools
4RUN dnf -y update && dnf -y install which git automake texinfo gettext-devel autoconf libtool libtool-ltdl-devel libidn-devel libunistring-devel glpk libextractor-devel libmicrohttpd-devel gnutls libgcrypt-devel jansson-devel sqlite-devel npm
5
6WORKDIR /usr/src
7
8# Install gnurl
9RUN wget https://ftp.gnu.org/gnu/gnunet/gnurl-7.59.0.tar.gz
10RUN tar xvzpf gnurl-7.59.0.tar.gz
11WORKDIR /usr/src/gnurl-7.59.0
12RUN autoreconf -i
13RUN ./configure --disable-ntlm-wb
14RUN make install
15WORKDIR /usr/src
16
17RUN dnf -y install wget flex bison
18
19# Install libpbc
20RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
21RUN tar xvzpf pbc-0.5.14.tar.gz
22WORKDIR /usr/src/pbc-0.5.14
23RUN ./configure --prefix=/usr
24RUN make install
25WORKDIR /usr/src
26
27RUN dnf -y install glib2-devel
28
29# Install libbswabe
30RUN git clone https://github.com/schanzen/libgabe.git
31WORKDIR /usr/src/libgabe
32RUN ./configure --prefix=/usr
33RUN make install
34
35# Install WebUI
36WORKDIR /usr/src/
37RUN git clone https://github.com/schanzen/gnunet-webui.git
38WORKDIR /usr/src/gnunet-webui
39RUN git checkout gnuidentity
40
41RUN mkdir /usr/src/gnunet
42WORKDIR /usr/src/gnunet
43ADD . .
44ARG NUM_JOBS
45RUN ./bootstrap
46RUN ./configure --prefix=/usr/local
47RUN make -j$NUM_JOBS
48RUN make install
49
50RUN groupadd gnunetdns
51RUN adduser -S -m -h /var/lib/gnunet gnunet
52RUN chown gnunet:gnunet /var/lib/gnunet
53RUN echo '[arm]\nSYSTEM_ONLY = YES\nUSER_ONLY = NO\n' > /etc/gnunet.conf
54
55ADD docker-entrypoint.sh .
56
57CMD ["sh", "docker-entrypoint.sh"]
diff --git a/contrib/ci/docker/docker-entrypoint.sh b/contrib/ci/docker/docker-entrypoint.sh
new file mode 100644
index 000000000..807d86d6f
--- /dev/null
+++ b/contrib/ci/docker/docker-entrypoint.sh
@@ -0,0 +1,3 @@
1#!/bin/bash
2gnunet-arm -s > $HOME/gnunet.log 2>&1
3exec bash \ No newline at end of file