bitcoin: rm
This commit is contained in:
parent
3a9dfd968b
commit
d6b758f693
|
@ -1,27 +0,0 @@
|
|||
FROM docker.io/golang:1.19.9@sha256:86901bd215ca2b33bdef68f70b999140252169bb55883bb29347334fa00b5b62 AS bitcoin-build
|
||||
|
||||
ARG ARCH=amd64
|
||||
|
||||
ENV GO111MODULE=on
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install git netcat
|
||||
|
||||
RUN git clone https://github.com/btcsuite/btcd.git
|
||||
|
||||
WORKDIR /app/btcd
|
||||
|
||||
RUN go install -v . ./cmd/...
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone https://github.com/btcsuite/btcwallet.git
|
||||
WORKDIR /app/btcwallet
|
||||
|
||||
RUN go install -v . ./cmd/...
|
||||
|
||||
WORKDIR /root
|
||||
COPY scripts/.btcwallet .btcwallet
|
||||
COPY scripts/start_node.sh .
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
use this node https://github.com/btcsuite/btcd and run with the --addrindex option
|
||||
https://gist.github.com/davecgh/2992ed85d41307e794f6
|
||||
|
||||
# DOCKER_BUILDKIT=1 docker build --progress plain -f Dockerfile -t foo .
|
||||
% docker run -it -v `pwd`:`pwd` -w `pwd` foo bash
|
||||
|
||||
kubectl exec -it btc-0 -c btc-node -- /bin/bash
|
Binary file not shown.
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash -f
|
||||
|
||||
# 18554 --wallet
|
||||
# 18555 --btc server
|
||||
# 18556 --RPC server
|
||||
|
||||
set -x
|
||||
|
||||
/go/bin/btcd --addrindex --simnet --rpcuser=wormhole --rpcpass=w0rmh013 --miningaddr=ShadQfLbaRSnU5c1XrLknkLyWCkVV8rGMy --rpclisten 0.0.0.0:18556 &
|
||||
sleep 1
|
||||
/go/bin/btcwallet --simnet --username wormhole --password=w0rmh013 --rpclisten 0.0.0.0:18554 &
|
||||
sleep 1
|
||||
/go/bin/btcctl --simnet --wallet --rpcuser=wormhole --rpcpass=w0rmh013 walletpassphrase foo 9999
|
||||
/go/bin/btcctl --simnet --wallet --rpcuser=wormhole --rpcpass=w0rmh013 importprivkey Frd9p1JbyHgmcRrEzixN4LAAhK7forzdw65A9j6CTXRGiwawqKkg
|
||||
/go/bin/btcctl --simnet --rpcuser=wormhole --rpcpass=w0rmh013 generate 100
|
||||
jobs
|
||||
#sleep infinity
|
||||
nc -lk 0.0.0.0 18557
|
Loading…
Reference in New Issue