Make use of my proxy for donation

This commit is contained in:
Patrice Ferlet 2019-10-12 00:31:10 +02:00
parent 400e152ffd
commit e2ef2e39fe
2 changed files with 17 additions and 8 deletions

View File

@ -3,10 +3,6 @@ FROM alpine
LABEL maintainer="Patrice Ferlet <metal3d@gmail.com>"
ARG VERSION=3.2.0
ENV POOL_USER="44vjAVKLTFc7jxTv5ij1ifCv2YCFe3bpTgcRyR6uKg84iyFhrCesstmWNUppRCrxCsMorTP8QKxMrD3QfgQ41zsqMgPaXY5" \
POOL_PASS="" \
POOL_URL="gulf.moneroocean.stream:10001" \
DONATE_LEVEL=5
RUN set -xe;\
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories; \
@ -26,6 +22,13 @@ RUN set -xe;\
apk del cmake; \
apk add hwloc@testing;
ENV POOL_USER="44vjAVKLTFc7jxTv5ij1ifCv2YCFe3bpTgcRyR6uKg84iyFhrCesstmWNUppRCrxCsMorTP8QKxMrD3QfgQ41zsqMgPaXY5" \
POOL_PASS="" \
POOL_URL="xmr.metal3d.org:8080" \
DONATE_LEVEL=5 \
PRIORITY=0 \
THREADS=0
ADD entrypoint.sh /entrypoint.sh
WORKDIR /tmp
EXPOSE 3000

View File

@ -1,8 +1,14 @@
VERSION=3.2.0
VERSION = 3.2.0
REL = $(VERSION)-2
THREADS = $(shell nproc)
PRIORITY = 0
all: build run
build:
docker build -t metal3d/xmrig:$(VERSION) --build-arg VERSION=$(VERSION) .
docker tag metal3d/xmrig:$(VERSION) metal3d/xmrig:latest
docker build -t metal3d/xmrig:$(REL) --build-arg VERSION=$(VERSION) .
docker tag metal3d/xmrig:$(REL) metal3d/xmrig:latest
run:
docker run --rm -it metal3d/xmrig:$(VERSION)
docker run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) metal3d/xmrig:$(REL)