GithubHelp home page GithubHelp logo

chevybowtie / docker-xmrig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metal3d/docker-xmrig

0.0 1.0 0.0 22 KB

Xmrig dockerized to mine monero cryptocurrency

License: MIT License

Dockerfile 18.68% Makefile 13.52% Smarty 17.92% Shell 49.89%

docker-xmrig's Introduction

Xmrig - Monero minner in Docker

Xmrig is an opensource project to mine Monero cryptocurrency. It allow you to mine locally for a "pool", and to get back Monero for your effort.

Here, you can launch xmrig in a docker container to make it easy to launch it on Kubernetes, Swarm, or on local computer using standard docker command.

The image is based on Alpine to reduce size. It works, for now, only on Linux hosts.

  • Note: To make the container mining for your wallet, you'll need to have a monero wallet (see https://mymonero.com/) and follow instructions. Then change options for the container as explained in the following section
  • Note: The Xmrig API is set to port 3000, see documentation: https://github.com/xmrig/xmrig/blob/v3.2.0/doc/API.md
  • Note: this is a CPU version of Xmrig, nvidia version will be proposed later, but that's a bit more complex

If you want to donate for that project, here is my Wallet address:

44vjAVKLTFc7jxTv5ij1ifCv2YCFe3bpTgcRyR6uKg84iyFhrCesstmWNUppRCrxCsMorTP8QKxMrD3QfgQ41zsqMgPaXY5

Or, use that docker container with default options to give me CPU time.

Launch it

Simple as a pie:

docker run --rm -it metal3d/xmrig:latest

You can set up the container to mine for your wallet (see below), by default (withtout any option) you will mine for me. That's a nice way to help me, and to pay me a beer without any cost for you. So thanks ! ๐Ÿป - it's like a donation, thanks if you do it.

To make Xmrig running for you (to let you win some XMR on your wallet), simply change following options using environment variables:

export POOL_URL="here, pool url"
export POOL_USER="Your public monero address"
export POOL_PASS="can be empty for some pool, other use that as miner id"
export DONATE_LEVEL="xmrig project donation in percent, default is 5"

# launch docker container
docker run --name miner --rm -it \
    -e POOL_URL=$POOL_URL \
    -e POOL_USER=$POOL_USER \
    -e POOL_PASS=$POOL_PASS \
    -e DONATE_LEVEL=$DONATE_LEVEL \ 
    metal3d/xmrig

DONATE_LEVEL is not a donation to me, it's the donation included in xmrig project to help developers to continue the project. Please, to help them, let the donation to 5.

Press CTRL+C to stop container, and it will be removed.

See below for complete environment variable list.

Default

By default:

  • pool server is xmr.metal3d.org:8080 that is a proxy pool to gulf.moneroocean.stream
  • user is mine
  • password is "donator" + uuid
  • donation level to xmrig project is "5" (5%)

To not make your CPU burning, this container set:

  • number of threads = number CPU / 2
  • priority to CPU idle (0) - that makes mining process to be activated only when CPU is not used

Complete list of supported environment variable:

  • POOL_USER: your wallet address, default to mine
  • POOL_URL: the pool address, default to xmr.metal3d.org:8080
  • POOL_PASS: the pool password, or worker id, following the pool documentation, default if you mine for me is "donator + uuid"
  • DONATE_LEVEL: percentage of donation to Xmrig.com project (please, leave the default that is 5 or above, XMrig is a nice project, give'em a bit CPU time)
  • PRIORITY: CPU priority. 0=idle, 1=normal, 2 to 5 for higher priority
  • THREADS: number of thread to start, default to number CPU / 2
  • ACCESS_TOKEN: Bearer access token to access to xmrig API (served on 3000 port), default is a generated token (uuid)
  • ALGO: mining algorithm https://xmrig.com/docs/algorithms (default is empty)
  • COIN: that is the coin option instead of algorithm (default is empty)

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.