Skip to content

Commit fcafd21

Browse files
committed
bitcoin 28.0
1 parent 3445461 commit fcafd21

File tree

3 files changed

+86
-1
lines changed

3 files changed

+86
-1
lines changed

.github/workflows/docker-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# TODO: Change variable to your image's name.
1111
IMAGE_NAME: bitcoin
12-
VERSION: "27.0"
12+
VERSION: "28.0"
1313

1414
jobs:
1515
# Push image to GitHub Packages.

28.0/Dockerfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM debian:stable-slim as builder
2+
3+
# VERSION of BItcoin Core to be build
4+
ARG VERSION=28.0
5+
6+
ENV DEBIAN_FRONTEND=non-interactive
7+
8+
RUN apt-get update && apt-get install -y \
9+
build-essential \
10+
automake pkg-config \
11+
wget curl libzmq3-dev \
12+
libtool autotools-dev \
13+
bsdmainutils python3 git \
14+
libsqlite3-dev libdb-dev \
15+
libdb++-dev libevent-dev \
16+
libboost-dev libboost-system-dev \
17+
libboost-filesystem-dev libboost-test-dev
18+
19+
RUN wget -qO- https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION.tar.gz | tar -xvz
20+
21+
WORKDIR /bitcoin-$VERSION
22+
23+
RUN ./autogen.sh
24+
RUN ./configure \
25+
CXXFLAGS="-O2" \
26+
--disable-man \
27+
--disable-shared \
28+
--disable-ccache \
29+
--disable-tests \
30+
--enable-static \
31+
--enable-reduce-exports \
32+
--without-gui \
33+
--without-libs \
34+
--with-utils \
35+
--with-zmq \
36+
--with-sqlite=yes \
37+
--without-miniupnpc \
38+
--with-incompatible-bdb
39+
RUN make clean
40+
RUN make -j$(( $(nproc) + 1 ))
41+
42+
FROM debian:stable-slim
43+
44+
ENV DEBIAN_FRONTEND=non-interactive
45+
46+
# Only install what we need at runtime
47+
RUN apt-get update && apt-get install -y \
48+
libminiupnpc-dev libnatpmp-dev libevent-dev libzmq3-dev libsqlite3-dev
49+
50+
COPY --from=builder /bitcoin/src/bitcoind /usr/local/bin/
51+
COPY --from=builder /bitcoin/src/bitcoin-cli /usr/local/bin/
52+
53+
VOLUME /root/bitcoin/.bitcoin
54+
55+
CMD ["bitcoind", "-printtoconsole"]

28.0/bitcoin.conf

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Bitcoin.conf configuration for mainnet
2+
3+
# Use as many addnode= settings as you like to connect to specific peers
4+
# addnode=69.164.218.197
5+
# addnode=10.0.0.2:8333
6+
7+
# Alternatively use as many connect= settings as you like to connect ONLY
8+
# to specific peers:
9+
# connect=69.164.218.197
10+
# connect=10.0.0.1:8333
11+
12+
# Listening mode, enabled by default except when 'connect' is being used
13+
listen=1
14+
15+
# Maximum number of inbound+outbound connections.
16+
maxconnections=125
17+
18+
# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
19+
# server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands
20+
server=1
21+
22+
# RPC user and password
23+
rpcuser=bitcoin
24+
rpcpassword=change_this_password
25+
26+
# Enable bloom filters for SPV clients like Neutrino
27+
peerbloomfilters=1
28+
29+
# Enable transaction indexing for Silent Payments
30+
txindex=1

0 commit comments

Comments
 (0)