Skip to content

Commit

Permalink
bitcoin 28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Oct 18, 2024
1 parent 3445461 commit fcafd21
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: bitcoin
VERSION: "27.0"
VERSION: "28.0"

jobs:
# Push image to GitHub Packages.
Expand Down
55 changes: 55 additions & 0 deletions 28.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM debian:stable-slim as builder

# VERSION of BItcoin Core to be build
ARG VERSION=28.0

ENV DEBIAN_FRONTEND=non-interactive

RUN apt-get update && apt-get install -y \
build-essential \
automake pkg-config \
wget curl libzmq3-dev \
libtool autotools-dev \
bsdmainutils python3 git \
libsqlite3-dev libdb-dev \
libdb++-dev libevent-dev \
libboost-dev libboost-system-dev \
libboost-filesystem-dev libboost-test-dev

RUN wget -qO- https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION.tar.gz | tar -xvz

WORKDIR /bitcoin-$VERSION

RUN ./autogen.sh
RUN ./configure \
CXXFLAGS="-O2" \
--disable-man \
--disable-shared \
--disable-ccache \
--disable-tests \
--enable-static \
--enable-reduce-exports \
--without-gui \
--without-libs \
--with-utils \
--with-zmq \
--with-sqlite=yes \
--without-miniupnpc \
--with-incompatible-bdb
RUN make clean
RUN make -j$(( $(nproc) + 1 ))

FROM debian:stable-slim

ENV DEBIAN_FRONTEND=non-interactive

# Only install what we need at runtime
RUN apt-get update && apt-get install -y \
libminiupnpc-dev libnatpmp-dev libevent-dev libzmq3-dev libsqlite3-dev

COPY --from=builder /bitcoin/src/bitcoind /usr/local/bin/
COPY --from=builder /bitcoin/src/bitcoin-cli /usr/local/bin/

VOLUME /root/bitcoin/.bitcoin

CMD ["bitcoind", "-printtoconsole"]
30 changes: 30 additions & 0 deletions 28.0/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Bitcoin.conf configuration for mainnet

# Use as many addnode= settings as you like to connect to specific peers
# addnode=69.164.218.197
# addnode=10.0.0.2:8333

# Alternatively use as many connect= settings as you like to connect ONLY
# to specific peers:
# connect=69.164.218.197
# connect=10.0.0.1:8333

# Listening mode, enabled by default except when 'connect' is being used
listen=1

# Maximum number of inbound+outbound connections.
maxconnections=125

# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
# server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands
server=1

# RPC user and password
rpcuser=bitcoin
rpcpassword=change_this_password

# Enable bloom filters for SPV clients like Neutrino
peerbloomfilters=1

# Enable transaction indexing for Silent Payments
txindex=1

0 comments on commit fcafd21

Please sign in to comment.