lnd.xprv/scripts/install_bitcoind.sh
Oliver Gugger 785e797ef8
scripts: install bitcoind binary from docker image
Because the bitcoind mirror is extremely slow, we spend at least 2 to 3
minutes of each bitcoind related test on just downloading the binary. We
can achieve the same result by just pulling the docker image and
extracting the binary from that.
2020-10-08 21:29:51 +02:00

11 lines
322 B
Bash
Executable File

#!/usr/bin/env bash
set -ev
BITCOIND_VERSION=${BITCOIN_VERSION:-0.20.1}
docker pull ruimarinho/bitcoin-core:$BITCOIND_VERSION
CONTAINER_ID=$(docker create ruimarinho/bitcoin-core:$BITCOIND_VERSION)
sudo docker cp $CONTAINER_ID:/opt/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind
docker rm $CONTAINER_ID