UPDATE: hivemind-docker supporting communities

in HiveDevs9 months ago

Months ago I wrote a suite to make hivemind easy to deploy with docker (https://steemit.com/utopian-io/@drakos/hivemind-easy-deployment-with-hivemind-docker). This an update to support communities.

The latest hivemind branch that supports communities is 214-core (https://github.com/steemit/hivemind/tree/214-core) but it hasn't been yet merged into the master branch and their dockerhub image hasn't been updated (the current one is 4 months old). That's probably why nobody was aware of that branch!

Hivemind-communities requires a resynch and reindex, given the added columns in a few postgres tables.

Added features to hivemind-docker

https://github.com/Jolly-Pirate/hivemind-docker

  • Postgres dump for local backups (./run.sh dumpdb)
  • Support for communities using 214-core, I built a docker image and integrated that in the ./run.sh build command. You can always build your own image, just tag it hivemind:latest and you're good to go.
  • Additional test commands:
    ./run.sh testhivecom - test a hive-communities API call to hivemind
    ./run.sh testjussicom - test a hive-communities API call to jussi

Update procedure

Requirements: 240GB for the database and 50GB for the dump file.

@emrebeyler has updated his hivemind (https://steemit.com/hive-101863/@emrebeyler/announcing-a-new-hivemind-communuties-node-https-hivemind-communities-emrebeyler-me), we will use that in our update procedure.

  • Stop hive and postgres (jussi too, optionally)
    ./run.sh stop all
    ./run.sh stop jussi
  • Delete the pgdata folder
    sudo rm -rf pgdata
  • Initialize a fresh database
    ./run.sh initdb
  • Edit the .env file and update DB_DUMP_URL to this
    DB_DUMP_URL=https://hivemind-communities.emrebeyler.me/dumps/hive_latest.dump
  • Start postgres and import the latest dump
    ./run.sh start postgres
    ./run.sh importdb
  • Finally, start hive and let it synch the missing blocks
    ./run.sh start hive
  • If using jussi, add the following to the DEV_config.json file
    {
      "name": "bridge",
      "translate_to_appbase": false,
      "urls": [
        ["bridge", "http://hive:8080"]
      ],
      "ttls": [
        ["bridge", -1]
      ],
      "timeouts": [
        ["bridge", 30]
      ]
    }

and start it
./run.sh start jussi


PALnet curator https://www.palnet.io

Creativecoin curator https://www.creativecoin.xyz


Available & Reliable. I am your Witness. I want to represent You.

🗳 If you like what I do, consider voting for me 🗳

Vote

Check my guide about Voting for Witnesses.
Go to https://steemit.com/~witnesses. Next to my name, click the once.
Alternatively you can use SteemConnect to vote for me or set me as proxy

Sort:  

Congratulations @drakos! You received a personal award!

Thank you for the witness votes you made to support your Steem community and for keeping the Steem blockchain decentralized

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @drakos! You received a personal award!

Look's like you do not like Justin. Did you really downvote him?

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @drakos! You received a personal award!

Ned is definitly not your friend anymore. Did you really downvote him?

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @drakos! You received a personal award!

Did you downvote Steemit's posts because its owner converted it into a sockpuppets factory? OK, you deserve that badge!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!