Running witness server using Docker
Insallation
- Install Docker
Building
- clone the repository
# git clone https://github.com/blood2/steemd-docker
# cd steemd-docker
edit the Dockerfile, change to the wanted release tag *in the git checkout RUN command)
run the build command
# docker build --no-cache -t steemd .
Configuration
- Create a data directory
# mkdir data1
# cd data1
- Copy the excample config file into the data direcotry
# cp ../config-example.ini config.ini
create a block signing key for the witness, in steem's cli_wallet, run
suggest_brain_key
, save the pubkey and WIF key in safe location.edit the config.ini file, change witness name, and set the WIF in private-key setting
Running
# cd data1
# docker run -p 8090:8090 --restart=always --name=steemwitness1 -v `pwd`:/usr/local/steem/data steem steemd -d /usr/local/steem/data --rpc-endpoint --track-account-range=["a","a"]
Follow the log output using the command
# docker logs -f --tail=1000 steemwitness1
Wait until the blockchain syncs, and then update your witness's public signing key (use the pubkey from the configuration step), use steem's cli_wallet
>> update_witness accountname "https://url-describing-the-witness" pubkey {"account_creation_fee":"10.000 STEEM","maximum_block_size":131072,"sbd_interest_rate":1000} true
account_creation_fee is for discussion
** edit test, todo, add how to update and run a new container in case of new version/hard fork
Yes thank you:)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks for the tutoorial
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit