ebiiim / ccminer-docker

Yet another Docker image for tpruvot/ccminer with Kubernetes support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ccminer-docker

GitHub GitHub release (latest SemVer) Release

Yet another Docker image for tpruvot/ccminer with Kubernetes support.

Usage

Start mining

💡 Please read ccminer docs before using this image.

docker run --rm --gpus all \
  ghcr.io/ebiiim/ccminer \
  -a lyra2v2 \
  -o stratum+tcp://example.com:9200 \
  -u username \
  -p password

Start mining with config.json

docker run --rm --gpus all \
  -v "$(pwd)"/config.json:/work/config.json \
  ghcr.io/ebiiim/ccminer \
  -c config.json

Kubernetes

This manifest runs ccminer Pods as a DaemonSet on GPU nodes.

Deploy with Kustomize

💡 Please make sure GPUs are enabled on your cluster.

First, download kustomization.yaml and copy your config.json to it.

curl -Lo https://raw.githubusercontent.com/ebiiim/ccminer-docker/main/k8s/kustomization.yaml
  patchesStrategicMerge:
    # [ConfigMap] Put your config.json here. {{hostname}} will be replaced with the hostname of the Node.
    - |-
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: ccminer-config
      data:
        config.json: |-
-         {
-           "algo": "lyra2v2",
-           "url": "stratum+tcp://hoge.example.com:9200",
-           "user": "hoge.ccminer-{{hostname}}",
-           "pass": "hoge"
-         }
+         PUT YOUR config.json HERE

Then create the namespace,

kubectl create ns ccminer

and apply manifests.

kubectl apply -k kustomization.yaml

Changelog

1.0.0 - 2023-03-23

About

Yet another Docker image for tpruvot/ccminer with Kubernetes support.

License:MIT License


Languages

Language:Dockerfile 100.0%