dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

Dockerize your `dashd` instance #748

Closed Zatvobor closed 8 years ago

Zatvobor commented 8 years ago

In order to manage a set of MNs like a boss :smile: you should definitely consider Docker for that. Here is one of that, dashd.dockerfile. It works well for me and would be useful for others too. I believe, this one should be a part of project tree.

Should I submit the budget proposal :smile: or just PR to v0.12.1.x? Just let me know.

Dash is awesome. I would like to contribute.

UdjinM6 commented 8 years ago

Nice :)

However there already was at least one docker file which I can remember https://dashtalk.org/threads/docker-container-for-dash.3064/ Having another one doesn't hurt of course :)

Regarding the idea to include this kind of setup in the repo - I'm not sure if it's a good approach. There are few ways of managing masternode (or regular full node) which includes very nice bash-script based solutions from other community members like https://dashtalk.org/threads/dashman-linux-masternode-mangement-made-mootastic.6376/ or https://dashtalk.org/threads/simple-masternode-menu-for-linux-vps.5906/ I don't see why this particular solution would be superior to them and why it should be apart of the project itself tbh.

That doesn't mean that there are no people who would like to use it of course but you can always post your ways of setting thing up in some thread on https://dashtalk.org, I guess you could help someone out there who is/will be searching for a solution like that.

Anyway, thanks once again!

Zatvobor commented 8 years ago

Any other thoughts?

schinzelh commented 8 years ago

Nice, thanks. As we write another Dockerfile popped up:

https://dashtalk.org/threads/minimal-docker-container-for-dashd.8415/

So shall we include it in contrib folder?

UdjinM6 commented 8 years ago

If we are going to link this somehow than I would rather make a nice overivew without going any deeper, smth like this:

This way we would mention docker as a possible solution but we would keep maintenance of this option up to their authors. We could just check/update list of references sometimes. Basically the same way as bips are written - common principles/description only and references to implementation at the end of the file.

Zatvobor commented 8 years ago

FF to create an official account on https://hub.docker.com. FF to grab this one and change the MAINTAINER field, all you need for free...

In order for mass adoption the community should have Plug & Play container like a Docker. It's not always clear for those who have been doing Dash every day (quote, "There are few ways of managing ... which includes very nice bash-script ... and so on). It makes sense just only for those who are on the bright side :smile: as all we need just plug & play.

FF to ping me back if you need any kind of support about that...

schinzelh commented 8 years ago

I have set up PPA for Ubuntu for #880 , which simplifies the setup and maintenance of docker Images even more. I'll look into setting up a hub.docker.com for dash next.

schinzelh commented 8 years ago

I have created a dockerhub repo now

https://hub.docker.com/r/dashpay/dashd/

images are automatically built and pushed to dockerhub.

Now starting a node is as easy as doing

docker run -v /usr/local/dash-db:/dash --name=dashd-node -d \
    -p 9999:9999 \
    -p 127.0.0.1:9998:9998 \
    dashpay/dashd

Thanks for your contribution, it helped a lot :)

Zatvobor commented 8 years ago

Awesome. Thanks!