mirror of https://github.com/lnbook/lnbook
Docker bitcoind-base and bitcoind-regtest
Fixed bitcoind-base to use binary from bitcoincore.org instead of ppa which is no longer maintained. Updated regtest to show configuration, address and private keypull/236/head
parent
44b44ba499
commit
69c5d72aef
@ -1,36 +1,52 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
# Install development tools prerequisites
|
ENV BITCOIND_VERSION 0.20.0
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
libtool \
|
# # Install development tools prerequisites
|
||||||
autotools-dev \
|
# RUN apt-get update && apt-get install -y \
|
||||||
automake \
|
# build-essential \
|
||||||
pkg-config \
|
# libtool \
|
||||||
python3 \
|
# autotools-dev \
|
||||||
wget \
|
# automake \
|
||||||
git \
|
# pkg-config \
|
||||||
curl \
|
# python3 \
|
||||||
unzip
|
# wget \
|
||||||
|
# git \
|
||||||
# Install additional Bitcoin Core (bitcoind) requirements
|
# curl \
|
||||||
RUN apt-get install -y \
|
# unzip
|
||||||
libssl-dev \
|
|
||||||
libevent-dev \
|
# # Install additional Bitcoin Core (bitcoind) requirements
|
||||||
bsdmainutils \
|
# RUN apt-get install -y \
|
||||||
libboost-system-dev \
|
# libssl-dev \
|
||||||
libboost-filesystem-dev \
|
# libevent-dev \
|
||||||
libboost-chrono-dev \
|
# bsdmainutils \
|
||||||
libboost-test-dev \
|
# libboost-system-dev \
|
||||||
libboost-thread-dev \
|
# libboost-filesystem-dev \
|
||||||
libminiupnpc-dev \
|
# libboost-chrono-dev \
|
||||||
libzmq3-dev
|
# libboost-test-dev \
|
||||||
|
# libboost-thread-dev \
|
||||||
# Install software-properties-common to add apt repositories
|
# libminiupnpc-dev \
|
||||||
RUN apt-get install -y \
|
# libzmq3-dev
|
||||||
software-properties-common
|
|
||||||
|
# # Install software-properties-common to add apt repositories
|
||||||
# Add Bitcoin Core PPA repository
|
# RUN apt-get install -y \
|
||||||
RUN add-apt-repository ppa:bitcoin/bitcoin
|
# software-properties-common
|
||||||
RUN apt-get update && apt-get install -y \
|
#
|
||||||
bitcoind
|
# # Add Bitcoin Core PPA repository
|
||||||
|
# RUN add-apt-repository ppa:bitcoin/bitcoin
|
||||||
|
# RUN apt-get update && apt-get install -y \
|
||||||
|
# bitcoind
|
||||||
|
|
||||||
|
|
||||||
|
# Install binaries for Bitcoin Core
|
||||||
|
ADD https://bitcoincore.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz /usr/local
|
||||||
|
RUN cd /usr/local/ \
|
||||||
|
&& tar -zxf bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz \
|
||||||
|
&& cd bitcoin-${BITCOIND_VERSION} \
|
||||||
|
&& install bin/* /usr/local/bin \
|
||||||
|
&& install include/* /usr/local/include \
|
||||||
|
&& install -v lib/* /usr/local/lib
|
||||||
|
|
||||||
|
# Confirm installation
|
||||||
|
RUN bitcoind -version
|
||||||
|
Loading…
Reference in New Issue