create account

UPDATE: hivemind-docker supporting communities by drakos

View this thread on: hive.blogpeakd.comecency.com
· @drakos ·
$8.27
UPDATE: hivemind-docker supporting communities
<center>https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Illustration_of_overlapping_communities.svg/500px-Illustration_of_overlapping_communities.svg.png</center>

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`

***
##### <center>PALnet curator https://www.palnet.io
[![](https://cdn.steemitimages.com/DQma2sXTD5C79ByLLUddrjzyztXK2xCbzz2xPo4FtZfVpxP/plcoin-onblack_gif.gif)](https://www.palnet.io)</center>
##### <center>Creativecoin curator https://www.creativecoin.xyz</sub>
[![](https://cdn.steemitimages.com/DQmf2NZA67f1LSoPDMW9tdaiv8hV5PivFk6Tq6NyzLetT5w/websiteTemplate.png)](https://www.creativecoin.xyz)</center>
***
<center>
#### Available & Reliable. I am your Witness. I want to represent You.
##### &#x1F5F3; If you like what I do, consider voting for me &#x1F5F3;
[![Vote](https://steemitimages.com/DQmfRx7jNSrFAnRZPrKRHLDxR22gRFYTBnKr2uLNdVty3MG/drakos-witness-thanks.gif)](https://steemit.com/~witnesses)
###### Check my guide about [Voting for Witnesses](https://steemit.com/witness-category/@drakos/tips-and-guidelines-voting-for-witnesses).
###### Go to https://steemit.com/~witnesses. Next to my name, click the https://steemitimages.com/DQmYq3yGqzvbK4JQFudeXoDp6PEtdny8vSvX5swqW5sA2fE/chevron-up.png once.
###### Alternatively you can use SteemConnect to [vote for me](https://app.steemconnect.com/sign/account-witness-vote?witness=drakos&approve=true) or [set me as proxy](https://app.steemconnect.com/sign/account-witness-proxy?proxy=drakos&approve=true)
</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 263 others
👎  ,
properties (23)
authordrakos
permlinkupdate-hivemind-docker-supporting-communities
categoryhive-139531
json_metadata{"tags":["steem","hivemind","docker","development","palnet"],"users":["emrebeyler"],"image":["https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Illustration_of_overlapping_communities.svg/500px-Illustration_of_overlapping_communities.svg.png","https://cdn.steemitimages.com/DQma2sXTD5C79ByLLUddrjzyztXK2xCbzz2xPo4FtZfVpxP/plcoin-onblack_gif.gif","https://cdn.steemitimages.com/DQmf2NZA67f1LSoPDMW9tdaiv8hV5PivFk6Tq6NyzLetT5w/websiteTemplate.png","https://steemitimages.com/DQmfRx7jNSrFAnRZPrKRHLDxR22gRFYTBnKr2uLNdVty3MG/drakos-witness-thanks.gif","https://steemitimages.com/DQmYq3yGqzvbK4JQFudeXoDp6PEtdny8vSvX5swqW5sA2fE/chevron-up.png"],"links":["https://steemit.com/utopian-io/@drakos/hivemind-easy-deployment-with-hivemind-docker","https://github.com/steemit/hivemind/tree/214-core","https://github.com/Jolly-Pirate/hivemind-docker","https://steemit.com/hive-101863/@emrebeyler/announcing-a-new-hivemind-communuties-node-https-hivemind-communities-emrebeyler-me","https://www.palnet.io","https://www.creativecoin.xyz","https://steemit.com/~witnesses","https://steemit.com/witness-category/@drakos/tips-and-guidelines-voting-for-witnesses","https://app.steemconnect.com/sign/account-witness-vote?witness=drakos&approve=true","https://app.steemconnect.com/sign/account-witness-proxy?proxy=drakos&approve=true"],"app":"steemit/0.2","format":"markdown"}
created2020-02-28 18:32:00
last_update2020-02-28 18:32:00
depth0
children4
last_payout2020-03-06 18:32:00
cashout_time1969-12-31 23:59:59
total_payout_value4.407 HBD
curator_payout_value3.863 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,717
author_reputation112,280,226,665,329
root_title"UPDATE: hivemind-docker supporting communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id95,916,100
net_rshares31,158,109,843,243
author_curate_reward""
vote details (329)
@steemitboard ·
Congratulations @drakos! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@drakos/community.png</td><td>Thank you for the witness votes you made to support your Steem community and for keeping the Steem blockchain decentralized</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@drakos) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=drakos)_</sub>


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmTugCUsoXX762vg1CuHRrpnPbfnjPogp8iCGv7F2kSVuj/image.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge">Use your witness votes and get the Community Badge</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-drakos-20200305t210827000z
categoryhive-139531
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2020-03-05 21:08:27
last_update2020-03-05 21:08:27
depth1
children0
last_payout2020-03-12 21:08:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,173
author_reputation38,975,615,169,260
root_title"UPDATE: hivemind-docker supporting communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,096,489
net_rshares0
@steemitboard ·
Congratulations @drakos! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@drakos/downvote_js.png</td><td>Look's like you do not like Justin. Did you really downvote him?</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@drakos) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=drakos)_</sub>


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmTugCUsoXX762vg1CuHRrpnPbfnjPogp8iCGv7F2kSVuj/image.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge">Use your witness votes and get the Community Badge</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-drakos-20200306t224659000z
categoryhive-139531
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2020-03-06 22:47:00
last_update2020-03-06 22:47:00
depth1
children0
last_payout2020-03-13 22:47:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,116
author_reputation38,975,615,169,260
root_title"UPDATE: hivemind-docker supporting communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,131,586
net_rshares0
@steemitboard ·
Congratulations @drakos! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@drakos/downvote_ned.png</td><td>Ned is definitly not your friend anymore. Did you really downvote him?</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@drakos) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=drakos)_</sub>


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmTugCUsoXX762vg1CuHRrpnPbfnjPogp8iCGv7F2kSVuj/image.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge">Use your witness votes and get the Community Badge</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-drakos-20200306t230828000z
categoryhive-139531
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2020-03-06 23:08:27
last_update2020-03-06 23:08:27
depth1
children0
last_payout2020-03-13 23:08:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,123
author_reputation38,975,615,169,260
root_title"UPDATE: hivemind-docker supporting communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,132,189
net_rshares0
@steemitboard ·
Congratulations @drakos! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@drakos/downvote_stinc.png</td><td>Did you downvote Steemit's posts because its owner converted it into a sockpuppets factory? OK, you deserve that badge!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@drakos) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=drakos)_</sub>


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmTugCUsoXX762vg1CuHRrpnPbfnjPogp8iCGv7F2kSVuj/image.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/use-your-witness-votes-and-get-the-community-badge">Use your witness votes and get the Community Badge</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-drakos-20200307t003239000z
categoryhive-139531
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2020-03-07 00:32:39
last_update2020-03-07 00:32:39
depth1
children0
last_payout2020-03-14 00:32:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,174
author_reputation38,975,615,169,260
root_title"UPDATE: hivemind-docker supporting communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,133,768
net_rshares0