Skip to content

Commit

Permalink
removed ethash from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thelolagemann committed Dec 5, 2024
1 parent 42e2cac commit 9cd4e25
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cuda_base: [11.6.1, 12.3.2]
cuda_base: [11.6.1, 12.3.2, 12.6.3]
ubuntu_version: [20.04]
steps:
- name: Check out the repo
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG CUDA_BASE=11.6.1
ARG CUDA_BASE=12.6.3
ARG UBUNTU_VERSION=20.04

FROM alpine:latest as builder
Expand All @@ -12,7 +12,7 @@ FROM nvidia/cuda:${CUDA_BASE}-base-ubuntu${UBUNTU_VERSION}
COPY --from=builder /gminer /gminer
COPY entrypoint.sh ./
RUN chmod +x entrypoint.sh
ENV MINING_ALGO="ethash" \
ENV MINING_ALGO="etchash" \
MINING_POOL="gulf.moneroocean.stream:11024"

CMD "/entrypoint.sh"
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ AMD GPUs are currently unsupported. See issue [#1](https://github.com/thelolagem
#### CUDA

Ensure you have the correct nvidia-drivers installed, and then run `nvidia-smi` in order to check your currently
supported CUDA version. For example, 11.4 => `thelolagemann/gminer:latest-cuda-11.4.3`. Currently, images are
supported CUDA version. For example, 11.6 => `thelolagemann/gminer:latest-cuda-11.6.1`. Currently, images are
automatically generated on each new gminer release, for CUDA versions

- 11.2.2
- 11.3.1
- 11.4.3
- 11.5.1
- 11.6.0
- 11.6.1
- 12.3.2
- 12.6.3

## Quick start

Expand All @@ -48,14 +46,12 @@ Launch the miner with the following command:
docker run -d \
--name="gminer" \
--gpus=all \
--runtime=nvidia \
-e WALLET_ADDRESS="88yUzYzB9wrR2r2o1TzXxDMENr6Kbadr3caqKTBUNFZ3dWVt6sJcpWBAwMwNRtEi7nHcBcqzmExNfdNK7ughaCeUFuXXpPp" \
-e MINING_ALGO="ethash" \
-e MINING_ALGO="etchash" \
-e MINING_POOL="gulf.moneroocean.stream:11024" \
-e DWALLET_ADDRESS="EQDMgD4Gz-FEEgeQMEq24a3-2qE857yrlnvVngEP6obQJ8t3" \
-e DMINING_ALGO="ton" \
-e DMINING_POOL="wss://pplns.toncoinpool.io/stratum" \
--restart=always \
thelolagemann/gminer:latest-cuda-11.6.0
thelolagemann/gminer:latest-cuda-12.6.3
```

| **Parameter** | **Description** |
Expand All @@ -69,7 +65,7 @@ docker run -d \
|-------------------|--------------------------------------------|--------------------------------------|
| `RIG_NAME` | Name used to identify the mining rig. | Randomly generated |
| `WALLET_ADDRESS` | The wallet to payout to. | (unset) |
| `MINING_ALGO` | Mining algo to use. | `ethash` |
| `MINING_ALGO` | Mining algo to use. | `etchash` |
| `MINING_POOL` | URL of the mining pool to connect to. | `gulf.moneroocean.stream:11024` |
| `DMINING_ALGO` | Dual mining algo to use | `ton` |
| `DMINING_POOL` | URL of the dual mining pool to connect to. | `wss://pplns.toncoinpool.io/stratum` |
Expand All @@ -85,14 +81,11 @@ Here is an example of a `docker-compose.yml` file that can be used with [docker-
version: "3.9"
services:
gminer:
image: thelolagemann/gminer:latest-cuda-11.6.0
image: thelolagemann/gminer:latest-cuda-12.6.3
environment:
MINING_ALGO: "ethash"
MINING_ALGO: "etchash"
MINING_POOL: "gulf.moneroocean.stream:11024"
DMINING_ALGO: "ton"
DMINING_POOL: "wss://pplns.toncoinpool.io/stratum"
DWALLET_ADDRESS: "EQDMgD4Gz-FEEgeQMEq24a3-2qE857yrlnvVngEP6obQJ8t3"
RIG_NAME: "gpu~ethash"
RIG_NAME: "gpu~etchash"
WALLET_ADDRESS: "88yUzYzB9wrR2r2o1TzXxDMENr6Kbadr3caqKTBUNFZ3dWVt6sJcpWBAwMwNRtEi7nHcBcqzmExNfdNK7ughaCeUFuXXpPp"
deploy:
resources:
Expand All @@ -116,16 +109,16 @@ build arguments you can pass during build.
| Argument | Description | Default |
|------------------|----------------------------------------------------------|----------|
| `GMINER_VERSION` | The version of gminer to build the container with. | `3.44` |
| `CUDA_BASE` | The version of CUDA to build the container with. | `11.6.1` |
| `CUDA_BASE` | The version of CUDA to build the container with. | `12.6.3` |
| `UBUNTU_VERSION` | Ubuntu OS base container version.<sup>[1](#ubuntu)</sup> | `20.04` |

<sup><a name="ubuntu">1</a>: Check NVIDIA's [dockerhub](https://hub.docker.com/r/nvidia/cuda/tags?page=1&name=-runtime-ubuntu)
to correctly match up the CUDA and Ubuntu versions.</sup>

For example, to build a container with cuda version 11.6.1 and gminer 3.44, run the command
For example, to build a container with cuda version 12.6.3 and gminer 3.44, run the command

```shell
docker build --build-arg GMINER_VERSION=3.44 --build-arg CUDA_BASE=11.6.1 .
docker build --build-arg GMINER_VERSION=3.44 --build-arg CUDA_BASE=12.6.3 .
```

## License
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
export RIG_NAME=${RIG_NAME:-$(tr -dc A-Za-z0-9 </dev/urandom | head -c 8 ; echo '')'~ethash'}
export RIG_NAME=${RIG_NAME:-$(tr -dc A-Za-z0-9 </dev/urandom | head -c 8 ; echo '')'~'${MINING_ALGO}}
/gminer/miner --algo $MINING_ALGO --server "$MINING_POOL" --user "${WALLET_ADDRESS:-"88yUzYzB9wrR2r2o1TzXxDMENr6Kbadr3caqKTBUNFZ3dWVt6sJcpWBAwMwNRtEi7nHcBcqzmExNfdNK7ughaCeUFuXXpPp"}" \
--pass "$RIG_NAME" --proto stratum

0 comments on commit 9cd4e25

Please sign in to comment.