Giter Club home page Giter Club logo

hpool-miner's Introduction

Build Status

An hpool-chia-miner docker image.

docker hub:

hpool-chia-og-miner

hpool-chia-pp-miner

Tags

hpool-og-miner

update v1.2.0 Increase arm, aarch64 version

2021-06-11 add docker-entrypoint.sh, gosu, tini

x-proxy-og

hpool-pp-miner

x-proxy-pp

Examples

for hpool-og-miner

docker-compose example :

version: "3"

services:
  miner:
    image: kayuii/hpool-miner:v1.5.0-7
    restart: always
    volumes:
      - /mnt/dst:/mnt/dst
      - /opt/chia/logs:/opt/log
      - /opt/chia/config.yaml:/opt/config.yaml
    command:
      - hpool-chia-miner

or

version: "3"

services:
  miner:
    image: kayuii/hpool-miner:v1.5.0-7
    restart: always
    volumes:
      - /mnt/dst:/mnt/dst
      - /opt/chia/logs:/opt/log
    environment:
      - DIR=["/mnt/dst"]
      - APIKEY=1df8e525-772f-40e9-908d-0f26e36f8046
      - HOSTNAME=miner
      - LOGPATH=./logs/
      - SCAN=30
      - LANG=cn
      - PROXY=http://192.168.1.88:9190
      - MTLOAD=true
    command:
      - hpool-chia-miner

command-line example:

docker run -itd --rm  --name miner \
    -v "/mnt/dst:/mnt/dst" \
    -v "/opt/chia/logs:/opt/log" \
    -v "/opt/chia/config.yaml:/opt/config.yaml" \
    kayuii/hpool-miner:v1.4.1-1 hpool-chia-miner

or

docker run -itd --rm  --name miner \
    -v "/mnt/dst:/mnt/dst" \
    -v "/opt/chia/logs:/opt/log" \
    -e 'DIR=["/mnt/dst"]' \
    -e "APIKEY=1df8e525-772f-40e9-908d-0f26e36f8046" \
    -e 'HOSTNAME=miner' \
    -e 'LOGPATH=./logs/' \
    -e 'SCAN=30' \
    -e 'LANG=cn' \
    -e 'PROXY=http://192.168.1.88:9190' \
    -e 'MTLOAD=true' \
    kayuii/hpool-miner:v1.5.0-7 hpool-chia-miner

default config.yaml

token: ""
path: []                   #扫盘路径
minerName:                 #矿机名称(自定义)
apiKey:                    #hpool apikey
cachePath: ""
deviceId: ""
extraParams: {}
log:
  lv: info
  path: ./log/
  name: miner.log
url:
  info: ""
  submit: ""
  line: ""
  ws: ""
  proxy: ""                # 一个局域网内,代理只需要开一台就可以了,如代理所在的机器Ip是192.168.1.88,端口9190
scanPath: false            #是否扫盘
scanMinute: 60             #扫盘间隔(分钟)
debug: ""
language: cn
line: cn                   # **大陆以外地区如果连不上服务器,建议选择日本线路。 jp
multithreadingLoad: false  # 文件扫盘方式  false 单盘逐个加载 true 多盘同时加载

for hpool-pp-miner

docker-compose example :

version: "3"

services:
  miner:
    image: kayuii/hpool-pp-miner:v1.5.0-2
    restart: always
    volumes:
      - /mnt/dst:/mnt/dst
      - /opt/chia/logs:/opt/log
      - /opt/chia/config.yaml:/opt/config.yaml
    command:
      - hpool-chiapp-miner

or

version: "3"

services:
  miner:
    image: kayuii/hpool-pp-miner:v1.5.0-2
    restart: always
    volumes:
      - /mnt/dst:/mnt/dst
      - /opt/chia/logs:/opt/log
    environment:
      - DIR=["/mnt/dst"]
      - APIKEY=1df8e525-772f-40e9-908d-0f26e36f8046
      - HOSTNAME=miner
      - LOGPATH=./logs/
      - SCAN=30
    command:
      - hpool-chiapp-miner

command-line example:

docker run -itd --rm  --name miner \
    -v "/mnt/dst:/mnt/dst" \
    -v "/opt/chia/logs:/opt/log" \
    -v "/opt/chia/config.yaml:/opt/config.yaml" \
    kayuii/hpool-pp-miner:v1.5.0-2 hpool-chiapp-miner

or

docker run -itd --rm  --name miner \
    -v "/mnt/dst:/mnt/dst" \
    -v "/opt/chia/logs:/opt/log" \
    -e 'DIR=["/mnt/dst"]' \
    -e "APIKEY=1df8e525-772f-40e9-908d-0f26e36f8046" \
    -e 'HOSTNAME=miner' \
    -e 'LOGPATH=./logs/' \
    -e 'SCAN=30' \
    kayuii/hpool-pp-miner:v1.5.0-2 hpool-chiapp-miner

default config.yaml

path:            #扫盘路径
minerName:          #矿机名称(自定义)
apiKey:             #hpool apikey
cachePath: ""
deviceId: ""
extraParams: {}
log:
  lv: info
  path: ./log/
  name: miner.log
url:
  proxy: ""
scanPath: false     #是否扫盘
scanMinute: 60      #扫盘间隔(分钟)

hpool-miner's People

Contributors

kayuii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hpool-miner's Issues

x-proxy无法使用

x-proxy无法运行 日志如下

server: stdout
03:48:19 | host: 0.0.0.0 | stdout -- | -- | --
03:48:19 | port: 9190 | stdout -- | -- | --
03:48:19 | log: | stdout -- | -- | --
03:48:19 | level: "info" | stdout -- | -- | --
03:48:19 | out: "./log/proxy.log"run : x-proxy | stdout -- | -- | --
03:48:19 | 2021-06-16T11:48:19.175+0800 INFO engine/engine.go:402 =====> initialize database connections | stdout -- | -- | --
03:48:19 | panic: unable to open database file: no such file or directory | stdout -- | -- | --
03:48:19 |   | stdout -- | -- | --
03:48:19 | goroutine 1 [running]: | stdout -- | -- | --
03:48:19 | github.com/GoAdminGroup/go-admin/modules/db.(*Sqlite).InitDB.func1() | stdout -- | -- | --
03:48:19 | vendor/github.com/GoAdminGroup/go-admin/modules/db/sqlite.go:98 +0x2a5 | stdout -- | -- | --
03:48:19 | sync.(*Once).doSlow(0xc00038d4c8, 0xc00053b228) | stdout -- | -- | --
03:48:19 | /usr/local/go/src/sync/once.go:68 +0xec | stdout -- | -- | --
03:48:19 | sync.(*Once).Do(...) | stdout -- | -- | --
03:48:19 | /usr/local/go/src/sync/once.go:59 | stdout -- | -- | --
03:48:19 | github.com/GoAdminGroup/go-admin/modules/db.(*Sqlite).InitDB(0xc00038d4c0, 0xc0000fd530, 0xc00053b2e0, 0x0) | stdout -- | -- | --
03:48:19 | vendor/github.com/GoAdminGroup/go-admin/modules/db/sqlite.go:84 +0x9a | stdout -- | -- | --
03:48:19 | github.com/GoAdminGroup/go-admin/engine.(*Engine).initDatabase(0xc0004a48c0, 0xc0004a48c0) | stdout -- | -- | --
03:48:19 | vendor/github.com/GoAdminGroup/go-admin/engine/engine.go:181 +0x1af | stdout -- | -- | --
03:48:19 | github.com/GoAdminGroup/go-admin/engine.(*Engine).AddConfig(0xc0004a48c0, 0xc0000fd1a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1625c5a, 0x5, ...) | stdout -- | -- | --
03:48:19 | vendor/github.com/GoAdminGroup/go-admin/engine/engine.go:141 +0x93 | stdout -- | -- | --
03:48:19 | main.startServer() | stdout -- | -- | --
03:48:19 | main.go:94 +0x958 | stdout -- | -- | --
03:48:19 | main.main() | stdout -- | -- | --
03:48:19 | main.go:42 +0x25 -- | --

`sed` failure

This no longer works (from README):

version: "3"

services:
  miner:
    image: kayuii/hpool-miner:v1.4.1-1
    restart: always
    volumes:
      - /mnt/dst:/mnt/dst
      - /opt/chia/logs:/opt/log
      - /opt/chia/config.yaml:/opt/config.yaml
    command:
      - hpool-chia-miner

The new sed -i fails since config.yaml is mounted outside, it can't "mv/replace" since it can't skirt the filesystem. With set -x in the entrypoint.sh:

+ echo hpool-chia-miner
+ cut -c1
+ [ h = - ]
+ [ hpool-chia-miner = hpool-chia-miner ]
+ [ -n  ]
+ sed -i /path:$/c path: [ '/mnt/dst' ] config.yaml
sed: cannot rename ./sedq0HrNY: Device or resource busy

1.4.0-2 Released

Correction, ARCH required in build, however 1.4.0-2 has been released.

Docker HUB latest stil v1.3.0-6

The HUB version didn't auto-build to 1.4

Especially important with:

The current system detects that the Hpool-Chia-Miner mining software that your mining machine is using is not V1.4.0.1 version. Please update the software version to V1.4.0.1 as soon as possible. As the coverage of the full pool software version increases, the old software version will affect mining revenue! Please update ASAP! (If all updates have been made, you can ignore this information). 

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.