For a miner, at a minimum you'll need to:
- create a bitcoin wallet (or import an address)
- add the btc privatkey to the stacks config ( replace
%%PRIVATEKEY%%
in sample configs below)
#You will need to have jq installed, or this snippet won't run.
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
DESTINATION=/usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION
On first start, docker-compose
will build the required images locally - this can take a while to compile the binaries and create the images.
$ docker-compose up -d
- use distroless image for build artifact - or the smallest viable image possible
- remove shell? - maybe create a few variants of dockerfile for different scenarios (alpine, no shell, distroless, etc)
- for v2, write script to generate the keys
- import address into btc
- adjust the stacks config to use the privatekey
- k8s chart(s)?
- script for checking on chain status during sync
- check against public node block height every 120s or so
- script to expand envvar into the stacks config (requires writable path for the config - not a fan of this)