run_hived_img.sh is broken in v1.27.4
We expect that exchanges can run the node with minimal effort, with a command like this:
docker pull hiveio/hive:v1.27.4
./scripts/run_hived_img.sh hiveio/hive:v1.27.4 --name=hf27-instance --data-dir=/server/hivedata/datadir --shared-file-dir=/server/hivedata/datadir --webserver-http-endpoint=0.0.0.0:8091 --webserver-ws-endpoint=0.0.0.0:8090 --p2p-endpoint=0.0.0.0:2001 --load-snapshot latest
(assuming current block_log
is in /server/hivedata/datadir/blockchain
and config.ini
in /server/hivadata/datadir
)
Unfortunately they are facing
Using image name: latest
Unable to find image 'latest:latest' locally
(Latest isn't really a great name for an image.)
And later on (if you weirdly tag hive:v1.27.4 latest:latest), there's:
+ echo 'Data directory (DATADIR) /home/hived/datadir does not exist. Exiting.'
Data directory (DATADIR) /home/hived/datadir does not exist. Exiting.
+ exit 1
changed the entrypoint to
["/home/hived/bin/hived","--data-dir=/home/hived_admin/datadir","--shared-file-dir=/home/hived_admin/datadir","--replay-blockchain","--load-snapshot=latest"]
and chown userhived_admin
to dir/home/hived
, now seem looks work