GithubHelp home page GithubHelp logo

compscidr / lolminer-docker Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 11.0 85 KB

Working AMD/Nvidia drivers + lolminer. Tested on Ubuntu 20.04 and 20.10 hosts without requiring the AMD driver on the host. Nvidia requires the Ubuntu docker runtime.

License: Apache License 2.0

Dockerfile 100.00%
lolminer amdgpu ethereum pooled-mining nvidia mining hacktoberfest

lolminer-docker's Introduction

https://github.com/compscidr/lolminer-docker/actions/workflows/build.yml

lolminer-docker

Tried to make it as simple as possible to run lolminer without worrying about drivers or the mining software (at least on amd). The docker images are named as follows: ubuntu<ubuntu-version>-<cuda/amd-version>-<lolminer version>. For instance: ubuntu22.04-cuda-11.7.1-1.84 or ubuntu22.04-amd-21.30-1.84

amd:

Tested with Ubuntu 20.04 and 20.10 host operating systems without any special drivers installed on the host OS (ie, don't need to worry about the mess of AMD drivers in the most recent Ubuntu OS's).

For physical hardware, tested with rx580, rx480 gpus.

https://hub.docker.com/repository/docker/compscidr/lolminer-docker From dockerhub:

docker run --device=/dev/dri:/dev/dri compscidr/lolminer-docker:ubuntu22.04-amd-21.30-1.84 <insert lolminer args>

For instance:

docker run --device=/dev/dri:/dev/dri compscidr/lolminer-docker:ubuntu22.04-amd-21.30-1.84--coin ETH --pool eth.2miners.com --port 2020 --user 0x74ba897f65f04008d8eff364efcc54b0a20e17eb.amd-docker --apihost 0.0.0.0 --apiport 4069

The only fees are the lolminer fees, I didn't add any additional fees.

nvidia:

On the host, you need a bit more work to get the nvidia docker runtime (only required once):

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker

Then you can run as follows:

docker run --gpus all compscidr/lolminer-docker:ubuntu22.04-cuda-11.7.1-1.84 --coin ETH --pool eth.2miners.com --port 2020 --user 0x74ba897f65f04008d8eff364efcc54b0a20e17eb.nvidia-docker --apihost 0.0.0.0 --apiport 4069

Confirmed working with a ubuntu20.04 host and an nvidia rtx 3080 gpu. On a fresh Ubuntu 20.04 install, cuda 11.4.2 image will work, however if you've got a newer version on your host for some other reason, you can bump to a newer cuda version in the image as well if you want. You can check your cuda version and gpu driver version with nvidia-smi

docker-compose

Alternatively you can use the provided docker-compose file which will build everything from source. You will want to update the entrypoint within the docker-compose.yml file to use your own wallet and arguments for lolminer.

Then for AMD: docker-compose --profile amd up

and for Nvidia: docker-compose --profile nvidia up

lolminer-docker's People

Contributors

compscidr avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lolminer-docker's Issues

Make a CI matrix for various cuda / amd versions

Current with my setup (ubuntu 20.04), only the older cuda (11.4.2) works (I've also tried 11.6.0, but no luck). There is now also 11.7.0. I'd also like to soon update my setup to ubuntu 22.04.

For the AMD portion, I'll also likely need to make updates to this base image: https://github.com/compscidr/Docker_AMDGPU_Base_Image

The matrix should build (and somehow test)

  • ubuntu 20.04, ubuntu 22.04
  • cuda 11.4.2, 11.6.0, 11.7.0 (possible others?)
  • lolminer (various versions)

Also would be good to have dependabot / renovate recognize when lolminer has bumped so its not so manual.

insufficient user rights in lolminer?

Hello,

thank you for your work!

My issue:
lolminer starts and works fine without any special arguments, but when I want to change my overclocking settings I get the following error code:

Applying overclock settings...
GPU 0: core clock offset 100 not applied (insufficient user rights).
GPU 0: locked core clock not applied.
GPU 0: locked memory clock not applied.
GPU 0: power limit 170 not applied.
GPU 0: fan percentage 60 not applied.

How can I solve the problem?

I`m running docker as root.

Tahnk you!

LolMiner Update

Hello, I wanted to see if it would be possible to update to the latest version of lolminer. The current image does not support 1.81.

Automatic updates via dependabot or renovate

The build process of new container images is dependant on the build and deploy GH actions workflows.

I have dependabot and renovate configured, however, they aren't really able to catch the way this is configured (I use a build matrix and am currently manually making a PR to append the latest build tag from https://github.com/Lolliedieb/lolMiner-releases/releases)

It looks like there are some requests from renovate: renovatebot/renovate#24817 to support this type of usecase, but its not straightforward yet (although one of the requesters of the feature seems to have proposed a possible solution).

This needs some time and attention but ultimately could make updates almost automatic.

REQUEST: Support additional command arguments

Thanks for putting this together!

I was wondering if you'd be able to add support for additional command arguments like:

--algo (in addition to or **in place of** --coin)
--dualalgo
--dualpool
--dualuser
--cclk
--lhrtune
--config (which could solve all of the possible use cases)

Either through a conditional entrypoint or variables?

Tried with them as post arguments but not having any love.

Cheers!

EDIT: AND/OR while I'm thinking about it, it might be nice to just be able to pass a config file instead to cover the myriad of use cases and possible future args!

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: File contents are invalid JSON but parse using JSON5. Support for this will be removed in a future release so please change to a support .json5 file name or ensure correct JSON syntax.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update nvidia/cuda Docker tag to v11.8.0
  • Update nvidia/cuda Docker tag to v12

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • nvidia/cuda 11.7.1-base-ubuntu22.04
github-actions
.github/workflows/build.yml
  • actions/checkout v4
  • actions/checkout v4
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/deploy.yml
  • actions/checkout v4
  • docker/login-action v3
  • actions/checkout v4
  • docker/login-action v3
  • ubuntu 22.04
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

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.