mirror of
https://github.com/metal3d/docker-xmrig.git
synced 2024-09-11 13:15:29 +03:00
Fixed version
This commit is contained in:
parent
4829165558
commit
c2a4dffa83
@ -2,7 +2,7 @@ FROM alpine
|
||||
|
||||
LABEL maintainer="Patrice Ferlet <metal3d@gmail.com>"
|
||||
|
||||
ARG VERSION=6.18.0
|
||||
ARG VERSION=6.19.3
|
||||
|
||||
RUN set -xe;\
|
||||
echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \
|
||||
|
15
Makefile
15
Makefile
@ -1,24 +1,25 @@
|
||||
VERSION = 6.18.0
|
||||
VERSION = 6.19.3
|
||||
REL = $(VERSION)-1
|
||||
THREADS = $(shell nproc)
|
||||
PRIORITY = 0
|
||||
REPO=metal3d/xmrig
|
||||
REPO=docker.io/metal3d/xmrig
|
||||
CC=podman
|
||||
|
||||
HUB=https://hub.docker.com/v2
|
||||
|
||||
all: build run
|
||||
|
||||
build:
|
||||
docker build -t $(REPO):$(REL) --build-arg VERSION=$(VERSION) .
|
||||
docker tag $(REPO):$(REL) $(REPO):latest
|
||||
$(CC) build -t $(REPO):$(REL) --build-arg VERSION=$(VERSION) .
|
||||
$(CC) tag $(REPO):$(REL) $(REPO):latest
|
||||
|
||||
run:
|
||||
docker run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) $(REPO):$(REL)
|
||||
$(CC) run --rm -it -e THREADS=$(THREADS) -e PRIORITY=$(PRIORITY) $(REPO):$(REL)
|
||||
|
||||
|
||||
deploy: build
|
||||
docker push $(REPO):$(REL)
|
||||
docker push $(REPO):latest
|
||||
$(CC) push $(REPO):$(REL)
|
||||
$(CC) push $(REPO):latest
|
||||
|
||||
test:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user