Change to my own pool proxy

This commit is contained in:
Patrice Ferlet 2019-10-12 01:06:57 +02:00
parent e2ef2e39fe
commit 2877d6e18d
2 changed files with 25 additions and 6 deletions

View File

@ -1,14 +1,33 @@
VERSION = 3.2.0
REL = $(VERSION)-2
REL = $(VERSION)-3
THREADS = $(shell nproc)
PRIORITY = 0
REPO=metal3d/xmrig
HUB=https://hub.docker.com/v2
all: build run
build:
docker build -t metal3d/xmrig:$(REL) --build-arg VERSION=$(VERSION) .
docker tag metal3d/xmrig:$(REL) metal3d/xmrig:latest
docker build -t $(REPO):$(REL) --build-arg VERSION=$(VERSION) .
docker tag $(REPO):$(REL) $(REPO):latest
run:
docker run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) metal3d/xmrig:$(REL)
docker run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) $(REPO):$(REL)
deploy: build
docker push $(REPO):$(REL)
docker push $(REPO):latest
test:
.ONESHELL:
set-description:
ifdef PASSWORD
@echo "Changing description"
token=`http $(HUB)/users/login username=$(USERNAME) password=$(PASSWORD) | jq -r '.token'`
http --form PATCH $(HUB)/repositories/metal3d/xmrig/ Authorization:"JWT $$token" full_description=@README.md
else
@echo "You need to provide repo password in PASSWORD variable argument"
endif

View File

@ -54,7 +54,7 @@ See below for complete environment variable list.
By default:
- pool server is `gulf.moneroocean.stream:10001`
- 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%)
@ -67,7 +67,7 @@ To not make your CPU burning, this container set:
Complete list of supported environment variable:
- `POOL_USER`: your wallet address, default to mine
- `POOL_URL`: the pool address, default to `gulf.moneroocean.stream:10001`
- `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