summaryrefslogtreecommitdiff
path: root/docker/gnunet/Dockerfile
blob: 9161ee7a7c6dac7a4454a22dea72c42ec2959101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM debian:jessie

ENV PREFIX=/usr

RUN apt-get update && apt-get install -y \
  git subversion \
  make \
  autoconf autopoint libtool texinfo \
  libgcrypt-dev libidn11-dev zlib1g-dev libunistring-dev \
  libjansson-dev \
  libsqlite3-dev \
  libpq-dev postgresql \
  \
  && \
  rm -rf /var/lib/apt/lists/*
  

#
# Build gnurl
#
RUN \
  mkdir /build && cd /build && \
  git clone git://taler.net/gnurl.git && \
  cd gnurl && \
  ./buildconf && \
  ./configure --prefix=$PREFIX --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl --without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file --disable-ftp --disable-smb && \
  make && \
  make install && \
  rm -rf /build


#
# Build mhd
#
RUN \
  mkdir /build && cd /build && \
  svn checkout https://gnunet.org/svn/libmicrohttpd && \
  cd libmicrohttpd && \
  ./bootstrap && \
  ./configure --prefix=$PREFIX && \
  make && \
  make install && \
  rm -rf /build


#
# Build gnunet
#
RUN \
  mkdir /build && cd /build && \
  svn checkout https://gnunet.org/svn/gnunet && \
  cd gnunet && \
  ./bootstrap && \
  ./configure --prefix=$PREFIX && \
  make && \
  make install && \
  rm -rf /build