aboutsummaryrefslogtreecommitdiff
path: root/contrib/ci/docker
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-05-19 14:43:13 +0000
committerNils Gillmann <ng0@n0.is>2018-05-19 14:43:13 +0000
commit6ab60d4920bb3199aee8cd872b930e9e3e808ba7 (patch)
tree3d761dbf8793a1d2422fbd14667255c7e0292ea4 /contrib/ci/docker
parentc2f27dfe8218545c327ab49d225a49910347c5c6 (diff)
downloadgnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.tar.gz
gnunet-6ab60d4920bb3199aee8cd872b930e9e3e808ba7.zip
Restructure contrib folder.
contrib/pogen.sh -> bin/pogen.sh bootstrap: Use new pogen location and execute it. contrib/openvpn-tap32: Move to contrib/3rdparty/Windows/openvpn-tap32. contrib/gnunet-logo*: Move to contrib/branding/logo/ Delete old patches in contrib, predating git. Move buildbot data to contrib/ci/buildbot, move docker data to contrib/ci/docker. Create contrib/conf and populate it with config files found in contrib and bin. Move gns related data to contrib/gns. delete contrib/repeat.sh Move contrib/log.php into contrib/web/log.php. Create folder contrib/scripts and use it for most scripts in contrib. Remove trailing whitespace in doc/Makefile.am Signed-off-by: Nils Gillmann <ng0@n0.is>
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