$ tar -zcvf omnisat-indexer-rs.tar.gz Cargo.toml entrypoint.sh Dockerfile src
SSH into the remote host
$ gcloud compute ssh indexer-omnisat-rs --zone us-central1-c --project pineappleworkshop
Make the directory example:
$ mkdir -p /home/zuwuko/omnisat-indexer-fix-send-edge-case
$ gcloud compute scp omnisat-indexer-rs.tar.gz indexer-omnisat-rs:/home/zuwuko/omnisat-indexer-fix-send-edge-case/ --zone us-central1-c --project pineappleworkshop
$ tar -zxvf omnisat-indexer-rs.tar.gz
$ sudo docker build -t gcr.io/pineappleworkshop/omnisat-indexer-rs-fix-send-edge-case:0.0.1 .
$ sudo docker run -d --env-file .env --restart always gcr.io/pineappleworkshop/omnisat-indexer-rs-fix-send-edge-case:0.0.1
$ gcloud compute ssh indexer-omnisat-rs --zone us-central1-c --project pineappleworkshop --command 'sudo docker logs -f 818038064c9c'
- full BTC node (unparsed -- started with
bitcoind --txindex
) running locally - rust
start node with bitcoin.conf
settings as such:
$ cat <PATH TO BITCOIN INSTALL>/Bitcoin/bitcoin.conf
server=1
txindex=1
listen=0
rpcport=8333
rpcuser=<MAKE A USERNAME>
rpcpassword=<MAKE A PASSWORD>
$ cat .env
RPC_USER=<SAME USERNAME AS bitcoin.conf>
RPC_PASSWORD=<SAME PASSWORD AS bitcoin.conf>
RPC_URL=127.0.0.1:8333
with all of that in place, you should be good to geaux
cargo run