Coder Social home page Coder Social logo

rblaine95 / docker_monero_xmrig Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 6.0 103 KB

Because servethehome/monero_xmrig docker is outdated and it annoys me

License: The Unlicense

Shell 85.42% Dockerfile 14.58%
docker-monero-xmrig monero docker xmrig xmr cpuminer cryptonight cryptocurrency servethehome alpine

docker_monero_xmrig's Introduction

Monero XMRig Docker

GitHub Workflow Status (branch) GitHub release GitHub Release Date

Because servethehome/monero_xmrig is very outdated.

XMRig Version: 6.21.3

If a new version for XMRig comes out and you want me to update this docker, feel free to open an issue or do a pull request.

I will try to update this docker as quickly as possible.

Usage

  • $username - pool username
  • $pool - pool address (with protocol, like stratum+tcp://)
  • $threads - Number of threads to mine with (recommended is vCPU / 2)
  • $donate - percentage of hash to donate to devs (not me)
  • $password - optional for most pools
  • $coin - which coin to mine
  • $algo - which algorithm to mine
  • $VERSION - XMRig version to use

Mine specific coin

docker run -ti --rm \
  -e username=$username \
  -e xmrpool=$pool \
  -e numthreads=$threads \
  -e startport=$port \
  -e donate=$donate \
  -e coin=$coin \
  -e VERSION=$VERSION \
  ghcr.io/rblaine95/monero_xmrig

Mine specific algorithm

docker run -ti --rm \
  -e username=$username \
  -e xmrpool=$pool \
  -e numthreads=$threads \
  -e startport=$port \
  -e donate=$donate \
  -e algo=$algo \
  -e VERSION=$VERSION \
  ghcr.io/rblaine95/monero_xmrig

Variable Defaults

  • $threads - output of nproc / 2
  • $port - 3333
  • $xmrpool - stratum+tcp://pool.supportxmr.com
  • $password - docker
  • $donate - 5
  • $coin - monero
  • $algo - null
  • $VERSION - Current XMRig version listed above

docker_monero_xmrig's People

Contributors

dependabot[bot] avatar rblaine95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker_monero_xmrig's Issues

Migrate to Alpine based image

Alpine based images are significantly smaller than other images.
Migrating to an Alpine based image would decrease the footprint of this image.

Multi Stage Dockerfile to decrease image size

Using a multi stage dockerfile results in an image that goes from (on quay) 83.9MB to 19.8MB.
Uncompressed, it goes from 234MB to 50.6MB.

The difference is that XMRig is built on docker build instead of on runtime.

If anyone would like to comment regarding the benefits on this, that would be appreciated.
I like that the image is significantly smaller, however I'm not certain regarding the performance hit.

quay.io/rblaine95/monero_xmrig:latest - larger image, compile on runtime
quay.io/rblaine95/monero_xmrig:tiny - smaller image, compile on build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.