summaryrefslogtreecommitdiff
path: root/sandcastle/images/base/Dockerfile
blob: d43ab65bd9b614c22a2b0968ccd0f5cc61dd9c14 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
FROM debian:bookworm AS base-system
RUN apt-get update

RUN apt-get install -y \
  autoconf \
  autopoint \
  libtool \
  texinfo \
  libgcrypt-dev \
  libidn11-dev \
  zlib1g-dev \
  libunistring-dev \
  libjansson-dev \
  git \
  recutils \
  libsqlite3-dev \
  libpq-dev \
  postgresql \
  libcurl4-openssl-dev \
  libsodium-dev \
  libqrencode-dev \
  zip \
  jq \
  npm \
  openjdk-17-jre \
  nginx \
  procps \
  curl \
  python3-jinja2 \
  wget \
  curl \
  socat \
  apache2-utils \
  python3-pip \
  python3-sphinx \
  python3-sphinx-rtd-theme \
  python3-venv \
  sqlite3 \
  vim \
  emacs \
  nodejs

# FIXME: Try to use debian packages where possible and otherwise really use
# a venv or per-user installation of the package.
RUN pip3 install --break-system-packages requests click poetry uwsgi htmlark

FROM base-system AS mhd
WORKDIR /
COPY buildconfig/libmhd.tag /buildconfig/
RUN TAG=$(cat /buildconfig/libmhd.tag) && \
  git clone git://git.gnunet.org/libmicrohttpd \
  --branch $TAG
WORKDIR /libmicrohttpd
RUN ./bootstrap
RUN ./configure --disable-doc
RUN make install
WORKDIR /

FROM mhd AS gnunet
COPY buildconfig/gnunet.tag /buildconfig/
WORKDIR /
RUN TAG=$(cat /buildconfig/gnunet.tag) && \
  git clone git://git.gnunet.org/gnunet \
  --branch $TAG
WORKDIR /gnunet
RUN ./bootstrap
RUN ./configure --enable-logging=verbose --disable-documentation
RUN make install
WORKDIR /

FROM gnunet AS exchange
WORKDIR /
COPY buildconfig/exchange.tag /buildconfig/
RUN TAG=$(cat /buildconfig/exchange.tag) && \
  git clone git://git.taler.net/exchange \
  --branch $TAG
WORKDIR /exchange
RUN ./bootstrap
RUN ./configure CFLAGS="-ggdb -O0" --enable-logging=verbose --disable-doc
RUN make install
WORKDIR /

FROM exchange AS merchant
WORKDIR /
COPY buildconfig/merchant.tag /buildconfig/
RUN TAG=$(cat /buildconfig/merchant.tag) && \
  git clone git://git.taler.net/merchant \
  --branch $TAG
WORKDIR /merchant
RUN ./bootstrap
RUN ./configure CFLAGS="-ggdb -O0" \
  --enable-logging=verbose \
  --disable-doc
RUN make install
WORKDIR /

FROM base-system AS libeufin
WORKDIR /
COPY buildconfig/libeufin.tag /buildconfig/
RUN TAG=$(cat buildconfig/libeufin.tag) && \
  git clone git://git.taler.net/libeufin \
  --branch $TAG
WORKDIR /libeufin
RUN ./bootstrap
RUN ./configure
RUN make install
WORKDIR /

FROM base-system AS taler-merchant-demos
WORKDIR /
COPY buildconfig/merchant-demos.tag /buildconfig/
RUN TAG=$(cat buildconfig/merchant-demos.tag) && \
  git clone git://git.taler.net/taler-merchant-demos \
  --branch $TAG
WORKDIR /taler-merchant-demos
RUN ./bootstrap
RUN ./configure
RUN make install
WORKDIR /

FROM base-system AS wallet-core
WORKDIR /
COPY buildconfig/wallet.tag /buildconfig/
RUN TAG=$(cat /buildconfig/wallet.tag) && \
  git clone git://git.taler.net/wallet-core \
  --branch $TAG
RUN npm install -g pnpm@^7.0.0
WORKDIR /wallet-core
RUN ./bootstrap
WORKDIR ./packages/demobank-ui
RUN ./configure
RUN make install
# Install CLI to provide integration tests.
WORKDIR ../taler-wallet-cli
RUN ./configure
RUN make install
WORKDIR /

FROM merchant AS sync
COPY buildconfig/sync.tag /buildconfig/
WORKDIR /
RUN TAG=$(cat buildconfig/sync.tag) && \
  git clone git://git.taler.net/sync \
  --branch $TAG
WORKDIR /sync
RUN ./bootstrap
RUN ./configure CFLAGS="-ggdb -O0" \
  --enable-logging=verbose \
  --disable-doc
RUN make install
WORKDIR /