gridcoin-community / Gridcoin-Research

Gridcoin-Research
MIT License
585 stars 173 forks source link

gridcoin client headless in container #2766

Open kvnglb opened 1 month ago

kvnglb commented 1 month ago

Feature Request

Describe the Feature Request

Hello gridcoin maintainers,

in the community I have seen, that there is a docker repo, but unfortunately only for the builds. It would be pretty nice to have the ability to run a gridcoin wallet isolated and not just on debian based systems. I know I could compile it by myself but that is a bit inconvenient and -- maybe there are people like me -- who don't want to "trash" their host with all kinds of software and libraries.

Ahm... also, I feel more comfortable with rhel based systems so my servers run with that stuff but I also wanted to have a handy way to roll out boinc, gridcoin and fah on those servers (fah also only provides the deb file for arm clients sad neoverse server noise). So about two years ago, i threw boinc and gridcoin in containers. And since then, it works like a charm (only with cpu load, only tested with podman). A few months ago, fah followed.

After cleaning up my stuff, I uploaded it and I would be happy to submit a PR if there is a suitable repo for it. Maybe others can benefit from it as well. Should also be very easy to audit, there are only 11 lines of shell script (where 6 lines are for logging the balance, staking status and magnitude).

thank you and best regards, kevin

Describe Preferred Solution

When you think that this has additional value, it would be nice to have a repo where I can submit a PR. Of course I'll add the documentation, but I didn't want to go to the trouble if something like this already exists (and I've just failed to find it) or if there's no need.

Describe Alternatives

Related Code

https://github.com/kvnglb/gridcoinresearchd-containerized warning of the misused makefile

Additional Context

jamescowens commented 3 weeks ago

Gridcoin provides native package support for many other Linux distributions besides Debian. Redhat and OpenSUSE (rpm based) are on OBS for example (see https://software.opensuse.org/package/gridcoinresearch). I will let @div72 comment on whether it is worth it to offer a containerized version of the Gridcoin release officially.

wilkart commented 2 weeks ago

Dear @kvnglb, I maintain latest production release on Oracle Linux and Arch Linux. https://hub.docker.com/r/osgiliath/gridcoin