Closed beaurancourt closed 3 years ago
Okay, went through and changed the dockerfile to use rust:alpine, and then verified that we were installing the minimum required packages to get it to compile
What does your bitcoin/electrs/electrs
folder look like? If it's empty, you probably need to run git submodule update
or the like (or ./install-repositories.sh
)
Thanks for the tips @beaushinkle! Right now I'm getting Error: An unknown argument '--cookie' was specified
.
➜ local-setup git:(run-electrs-docker) ✗ ./run-bitcoin.sh
Starting bitcoind, electrs, and electrumX...
If the build step fails, try increasing the memory allocated to docker.
Creating electrs ... done
Creating bitcoind ... done
Creating electrumx ... done
Attaching to electrs, bitcoind, electrumx
electrs | Error: An unknown argument '--cookie' was specified.
electrumx | Generating a RSA private key
electrs exited with code 1
Okay - good for another try!
good for another look here
This PR adds a local electrs server to the
./run-bitcoin.sh
script by adding a new docker container to the docker-compose file.This goes hand-in-hand with the work in https://github.com/keep-network/keep-ecdsa/pull/768, which supplies a configurable electrs endpoint. Having the dockerized electrs server allows a developer to run
run-bitcoin.sh
and be able to point their ecdsa node at their local electrs, which in turn is running a local bitcoin node. Having all of this running locally speeds up the iterative development process!To test:
and then test an endpoint:
If
./run-bitcoin.sh
doesn't finish compiling, you may need to increase the amount of memory allocated to docker:tagging @michalinacienciala for some initial review (I think this falls in your wheelhouse, but feel free to correct me if I'm wrong)