-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.nvidia
33 lines (26 loc) · 1.74 KB
/
Dockerfile.nvidia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM abuisine/nvidia:375.66-7
ENV CLAYMORE_VERSION="11.8"
LABEL maintainer="Alexandre Buisine <[email protected]>" version="${CLAYMORE_VERSION}-nvidia-3"
# update ubuntu:1704 repositories which are EOL
RUN echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse" > /etc/apt/sources.list \
&& echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse" >> /etc/apt/sources.list \
&& echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse" >> /etc/apt/sources.list \
&& echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse" >> /etc/apt/sources.list
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& apt-get install -yqq --no-install-recommends \
vim-tiny \
flip \
libcurl3 \
curl \
&& apt-get -yqq clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/claymore
ENV CLAYMORE_FILENAME="https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v${CLAYMORE_VERSION}/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal_Blake2s_Keccak.AMD.NVIDIA.GPU.Miner.v${CLAYMORE_VERSION}.-.LINUX.tar.gz"
RUN curl -Lks ${CLAYMORE_FILENAME} | tar zxvf - --strip-components 1 \
&& for i in *bin; do ln $i e$i; done
ENV GPU_FORCE_64BIT_PTR=0 GPU_MAX_HEAP_SIZE=100 GPU_USE_SYNC_OBJECTS=1 GPU_MAX_ALLOC_PERCENT=100 GPU_SINGLE_ALLOC_PERCENT=100
COPY resources/Claymore.py /usr/local/bin/
ENV WALLET_ADDRESS="0x8d3c63a5121d346642e83b69a57a959abfb73812" \
HOSTS="eu1.ethermine.org:4444:x:1:0 eu2.ethermine.org:4444:x:1:0"
#HOSTS should be setted as follows: <hostname>:<port>:<password>:<esm>:<allpools>
CMD [ "--collector-port", "9090", "--miner-module", "Claymore", "--miner-port", "3333" ]