Hivemind Easy Deployment With hivemind-docker

in #utopian-io6 years ago (edited)
Sort:  

Thank you very much for your contribution! I especially like your quote "An elephant and a whale can be friends" - LOL

  1. It might be useful to have a wizard during installation so that we can answer questions and be prepared.
  2. Can the risks of exposing Postgre password e.g. $POSTGRES_PASSWORD in the environment variable be mitigated?
  3. I supsect that these scripts require sudo permissions anyway, so probably you don't need to manually add sudo before some of the commands.

+1 great work for using Docker (containerisation) !

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

  1. Maybe in a future update.
  2. You can chmod 700 .env for added security (I'll add that to the readme). I implemented a $POSTGRES_PASSWORD variable to avoid being prompted for the password every time you want to query the database.
  3. sudo has a timeout of 15min, so it's good to have it where needed, especially in the entrypoint.sh script, which addresses the postgres permission problems when trying to make it work in docker.

Thank you for your review, @justyy! Keep up the good work!

Have you considered running hivemind as a service, similar to SteemSQL?

I'm considering it, and anyone could, since it's relatively easy to set up (thanks to hivemind-docker) and not very resource hungry. But unlike SteemSQL, hive is limited to the social transactions, like comments, posts, votes.

Thanks for making this easier. I tried running Hivemind before but had all sorts of problems with Postgres and permissions.

Glad this will help.

What problems?

Installing postgres from scratch is like 2 config edits and 2 sql queries.

I had issues installing it on a Mac.

Posted using Partiko iOS

Docker on Mac has his issues too )

You may go on aws or vultr or any other vps provider, rent 1 vps for db and 1 for docker and get things done in few hours. Configure all these stuff on local machine is a good way to save $40-50 and lose 2 or 5 spare evenings.

Good luck in any case.

Thanks, but I have lots of local machines and using cloud services is the antithesis of decentralization.

Posted using Partiko iOS

using cloud services is the antithesis of decentralization

I can't agree.

Modern apps and DevOps practices are completely datacenter and provider agnostic. For example any large-scale analytic cluster has redundancy and datacenter-level failover much like blockchains have.

Decentralized? Yes. Distributed? No.

Well done, I read up about this a few months ago and people talking about the new possibilities hivemind will bring. It's so exciting to see it finally happening and all the other projects around scot. This place has really started to come together! When I see updates like this it really renews my faith in the project and the community

Je ne vais pas prétendre avoir compris le moindre mot 😄 ..mais après tout, cela n'a pas d'importance que moi je ne comprenne pas 😉

It's for the nerds lol

Oh, man... thanks @drakos. Was just talking about this and how it would be great if this was available!! And boom! There it is. Thanks for putting this together.

Your wish became true. Can you wish me to win the lottery? 😀

wow, awesome. thanks for doing this!

Hi @drakos!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @drakos!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Good job ;)

@mahdiyari Can I ask you something . Are you interested in small steemit project , this will improve your witness position for sure.without any investment , but definitely you will be benefited with this project as it will highlight you in steemit. You can find me on discord adityajainxds#3203. Just listen to the project if you like you can join else no problem.i can explain you here also in the comment. Thanks have a nice day.

Hmm, thinking if I upgraded my 2GB QNAP to 4GB, I might be able to run a tiny setup good enough to revive the daily flagwar visualization that I used to run from @pibarabot untill Steemit's rate limiting killed it. What do you think? Could this run on a 4G QNAP? And if it would, does it give access to the weighted per post vote history needed for my specific purpose?

I must go look more in this ... this sounds good :)

Thank you for informing the community about the progress on this important project.
Peace

so do we see communities coming to life now??

What does "communities" mean in Steem?


You just planted 0.10 tree(s)!


Thanks to @ucukertz

We have planted already
8112.62 trees
out of 1,000,000


Let's save and restore Abongphen Highland Forest
in Cameroonian village Kedjom-Keku!
Plant trees with @treeplanter and get paid for it!
My Steem Power = 21540.42
Thanks a lot!
@martin.mikes coordinator of @kedjom-keku
treeplantermessage_ok.png

Great! Thank you for your work!

Hey Pirata! It's incredible to have you back!
;)

Scuttlebutt has it that you oppose EIP. That true? I'm looking for witnesses to vote for who will keep EIP out of HF21.

It is true.

Docker is great but it's still STONGLY advised to configure separate Postgres instance outside Docker for any production environment.

I covered many possibilities to make a hivemind deployment easy.