-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.fedora38
60 lines (49 loc) · 1.27 KB
/
Dockerfile.fedora38
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
# Copyright (c) 2023 Bank of Italy
# Distributed under the GNU AGPLv3 software license, see the accompanying COPYING file.
FROM fedora:38
# toolchain deps
RUN dnf install -y \
autoconf \
automake \
cmake \
g++ \
gcc \
git \
jq \
libtool \
pkg-config \
vim-common \
zlib-devel
# build deps
#
# In Fedora, there are no "-devel" packages for the individual boost libraries.
# This is an exception to the usual Fedora-style packaging. Thus, the only boost
# package needed for satisfying the build requirements would be boost-devel,
# which brings in a superset of what we need.
#
# The other boost-* packages listed here are kept just for documentation of what
# would be the minimal set.
RUN dnf install -y \
argtable-devel \
boost-devel \
boost-filesystem \
boost-log \
boost-program-options \
boost-test \
boost-thread \
libcurl-devel \
libdb-cxx-devel \
libevent-devel \
openssl-devel \
pl-devel \
sqlite-devel \
zeromq-devel
RUN mkdir /itcoin-fbft
WORKDIR /itcoin-fbft
COPY . /itcoin-fbft
RUN mkdir /itcoin-fbft/build
WORKDIR /itcoin-fbft/build
RUN cmake ..
# Put itcoin-core in a dedicated layer.
RUN make itcoin-core-libraries -j $(nproc --ignore=1)
RUN make -j $(nproc --ignore=1)