How to deploy an Ahnode with official docker image?

in #witness2 years ago

image.png

Create a folder

# mkdir -p /data/ah/data/

Create a startup shell named /data/ah/run.sh

#!/bin/bash

docker run -itd \
--name ah \
-p 8091:8091 \
-v /data/ah/data:/var/steem \
steemit/steem:0.23.x-mira-ah \
/usr/local/steemd/bin/steemd --data-dir /var/steem

Download config.ini

# wget https://raw.githubusercontent.com/steemit/steem/master/contrib/config-for-ahnode.ini -O /data/ah/data/config.ini

Download and uncompress data

Visit https://files.steem.fans and download backup data which name likes steem_ah_xxx.tar.lz4.

# tar --use-compress-program=lz4 -xf steem_ah_xxx.tar.lz4 -C /data/ah/data

Start up

When everything is done, execute this command /data/ah/run.sh to start up.

Create stop shell named /data/ah/stop.sh

#!/bin/bash

docker network disconnect bridge ah
docker stop -t 600 ah
docker rm ah

If you want to stop container, execute this command /data/ah/stop.sh.

Watch container log

# docker logs -f --tail 100 ah

Finally

If you have any issue, feel free to connect me.

Leave a message or telegram me or discord me (ety001#4901).


Thank you for reading. I'm a witness. You could find more on my site https://steem.fans

I would really appreciate your witness vote! You can vote by AuthSteem. Or open https://steemitwallet.com/~witnesses page, input ety001 to vote.

2.gif

Thank you!

Sort:  

Hello @ety001! You are good!


command: !thumbup is powered by witness @justyy and his contributions are: https://steemyy.com
More commands are coming!

Very useful, thank you.

Brilliant, thanks for re-adding the ah node download to the fileserver!

This post has been featured in the latest edition of Steem News...

This post has been featured in the latest edition of Witness Weekly...


If you would like to support Witness Weekly and Steem News please consider voting for @pennsif.witness

Hello ety001,
I was going to set up the ahnode today. Unfortunately, I had to cancel the unpacking because the disk space was insufficient.
I already tried downloading and unzipping as a stream, but there is not enough space for that either.
I have about 730 GB of free space. How much space does the ahnode currently need?

Hi, it's about 787G.

787G    ./data
787G    .

Coin Marketplace

STEEM 0.19
TRX 0.18
JST 0.034
BTC 89422.86
ETH 3144.72
USDT 1.00
SBD 2.76