Skip to content

Commit

Permalink
add version as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-samoylenko committed Jun 20, 2024
1 parent a8bcf43 commit ec95859
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docker/bitcoind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ WORKDIR /shkeeper

COPY ./walletnotify.sh .

ARG BITCOIN_VERSION

RUN chmod +x walletnotify.sh \
&& curl -L https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz -o bitcoin.tar.gz \
&& curl -L https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz -o bitcoin.tar.gz \
&& tar -xzvf bitcoin.tar.gz \
&& cp bitcoin-22.0/bin/bitcoind bitcoin-22.0/bin/bitcoin-cli . \
&& rm -rf bitcoin.tar.gz bitcoin-22.0
&& cp bitcoin-${BITCOIN_VERSION}/bin/bitcoind bitcoin-${BITCOIN_VERSION}/bin/bitcoin-cli . \
&& rm -rf bitcoin.tar.gz bitcoin-${BITCOIN_VERSION}

CMD /shkeeper/bitcoind \
-prune=550 \
Expand All @@ -19,4 +21,7 @@ CMD /shkeeper/bitcoind \
-rpcbind=0.0.0.0 \
-rpcallowip=0.0.0.0/0 \
-wallet=shkeeper \
-walletnotify='/shkeeper/walletnotify.sh %s'
-walletnotify='/shkeeper/walletnotify.sh %s'

# BITCOIN_VERSION=27.0
# docker build --build-arg BITCOIN_VERSION=$BITCOIN_VERSION -t vsyshost/bitcoind:$BITCOIN_VERSION .

0 comments on commit ec95859

Please sign in to comment.