summaryrefslogtreecommitdiff
path: root/docker/base/Dockerfile
blob: 3409c5dace0366d81d324b4e68848fef64a3de1b (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
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

ENV HOME /root

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

WORKDIR $HOME/gnunet

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

WORKDIR $HOME/libmicrohttpd

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

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

ENV LD_LIBRARY_PATH "/usr/local/lib"

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