2019-05-23 03:51:58 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ev
|
2019-05-22 08:58:50 +03:00
|
|
|
|
2020-10-08 15:57:48 +03:00
|
|
|
BITCOIND_VERSION=${BITCOIN_VERSION:-0.20.1}
|
2019-05-22 08:58:50 +03:00
|
|
|
|
2020-10-08 15:57:48 +03:00
|
|
|
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
|