summaryrefslogtreecommitdiff
path: root/docker/base/Dockerfile
blob: 6edfa870dd7941f48de85d07127abd449cb5c0ec (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
FROM debian:unstable

RUN apt-get update && apt-get install -qqy \
      git \
      build-essential \
      autoconf \
      autopoint \
      libtool \
      libgcrypt20 \
      libgcrypt20-dev \
      libidn11-dev \
      zlib1g-dev \
      libunistring-dev \
      libjansson-dev \
      libpq-dev \
      libmicrohttpd-dev \
      libcurl4-gnutls-dev \
      python3 \
      python3-pip

# Needed to run the config generator
RUN pip3 install click

RUN git clone https://gnunet.org/git/gnunet/ \
    && git clone https://gnunet.org/git/libmicrohttpd/ \
    && git clone git://taler.net/deployment

WORKDIR /gnunet

RUN ./bootstrap \
    && ./configure --with-libgnurl=/usr/local/ \
    && make \
    && make install

WORKDIR /libmicrohttpd

RUN ./bootstrap \
    && ./configure --disable-doc \
    && make \
    && make install

# To run the config generator, need:
WORKDIR /deployment

RUN export TALER_CONFIG_ENV="test" \
    && export TALER_CONFIG_CURRENCY="EUR" \
    && export LC_ALL="C.UTF-8" \
    && export LANG="C.UTF-8" \
    && export LD_LIBRARY_PATH="/usr/local/lib"
    && ./bin/taler-deployment-config-generate


# Python3
# gnunet-ecc