mirror of
https://github.com/metal3d/docker-xmrig.git
synced 2024-09-11 13:15:29 +03:00
Change to my own pool proxy
This commit is contained in:
parent
e2ef2e39fe
commit
2877d6e18d
27
Makefile
27
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user