summaryrefslogtreecommitdiff
path: root/docker/taler-docker/exchange.Dockerfile
blob: 220a4b1adc9109dd03097955ca613181bfaa2d12 (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
FROM taler_base

# RUN addgroup -g 1000 -S talergroup && adduser -u 1000 -S taleruser -G talergroup
# USER taleruser
# ENV HOME /home/taleruser

COPY exchange.git $HOME/exchange
RUN git -C exchange checkout a199ba7fe61d1ea0aa7f9dcd4083ae2e52546c40
#cb27943f1443c38a4dcfde118207688eb049f13c

WORKDIR $HOME/exchange

# COPY *.patch ./
# RUN patch -p1 -i wire_response.patch && patch -p1 -i keys_currency.patch

#building with statics libs
# RUN apk add libltdl-static libgcrypt-static
RUN pip3 install jinja2
# patch for 
# ./configure: line 17303: ac_fn_c_check_decl: not found
# RUN cat configure | tail -n+16861 | head -n 45 > configure.patch && sed -i '17302r configure.patch' configure
# RUN sed -i 's-include <taler/taler_json_lib.h>-include "taler_json_lib.h"-' src/mustach/mustach-jansson.c

RUN ./bootstrap
RUN echo | git submodule update --init
RUN ./contrib/gana.sh

  # --build=x86_64-alpine-linux-musl \
  # --with-gnunet=/usr/local \ 
  # --with-libgnurl --with-microhttpd --with-gnunet \ 
  #  //--with-libgnurl=/usr/local --with-microhttpd=/usr/local 
RUN ./configure \
  CFLAGS='-ggdb -O0' \
  --enable-logging=verbose \
  && make \
  && make install
 # RUN make 'LDFLAGS=-all-static'

WORKDIR $HOME

RUN mkdir -p privacy terms/en
COPY terms.xml terms/en/v1.xml

RUN ldconfig

ENTRYPOINT ["taler-exchange-httpd"]