forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
78 lines (59 loc) · 3.05 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
# Set non-interactive mode
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary tools and clean up
RUN apt update && \
apt-get dist-upgrade -yqq && \
apt -y install wget jq curl xz-utils nvidia-opencl-dev git sudo wget libicu-dev xz-utils pciutils libnuma-dev libhwloc15 libuv1-dev libssl-dev libhwloc-dev liblzo2-dev libpam0g-dev libmicrohttpd-dev bc curl git sudo wget libicu-dev xz-utils pciutils libnuma-dev libhwloc15 libuv1-dev libssl-dev libhwloc-dev liblzo2-dev libpam0g-dev libmicrohttpd-dev bc curl libdb1-compat libcrypt1 gawk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Run package updates and install packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common \
&& add-apt-repository -y ppa:graphics-drivers/ppa \
&& apt-get update
# Search for nvidia-utils packages
#RUN apt-cache search nvidia-utils | grep '^nvidia-utils-' | awk '{print $1}' > nvidia_utils_packages.txt
# Sort and get the most recent package
#RUN most_recent_package=$(sort -Vr nvidia_utils_packages.txt | head -n 1)
# Show the most recent package
#RUN echo "The most recent nvidia-utils package is: $most_recent_package"
#RUN sleep 30
###TEST THIS LATER
#RUN apt-get install -y nvidia-utils-535-server nvidia-cuda-toolkit libnvidia-compute-535-server
##MINERS FAILING WITHOUT THIS
#RUN apt-get install -y libssl1.0.0
#RUN git clone https://github.com/rainbowminer/RainbowMiner ; cd RainbowMiner ; chmod +x *.sh ; ./install.sh
#This removes deviceparams requirements
#RUN git clone https://github.com/rainbowminer/RainbowMiner ; cd RainbowMiner ; sed -i 's/$($DeviceParams)//g' ./Miners/*.ps1 ; chmod +x *.sh ; ./install.sh
#RUN git clone https://github.com/rainbowminer/RainbowMiner ; cd RainbowMiner ; sed -i 's/\$Session.Config.CPUMiningThreads/#$Session.Config.CPUMiningThreads/g' ./Modules/Core.psm1 ; chmod +x *.sh ; ./install.sh
#RUN git clone https://github.com/rainbowminer/RainbowMiner ; cd RainbowMiner ; ./Modules/Core.psm1 ; chmod +x *.sh ; ./install.sh
#RUN apt-get install -y glibc-source gawk build-essential
RUN apt-get install -y build-essential gawk libdb1-compat libcrypt1 glibc-source
#RUN mkdir $HOME/glibc/ && cd $HOME/glibc ; wget http://ftp.gnu.org/gnu/libc/glibc-2.32.tar.gz ; tar -xvzf glibc-2.32.tar.gz ; mkdir build ; mkdir glibc-2.32-install ; cd build ; ~/glibc/glibc-2.32/configure --prefix=$HOME/glibc/glibc-2.32-install ; make ; make install
RUN git clone https://github.com/rainbowminer/RainbowMiner ; cd RainbowMiner ; chmod +x *.sh ; ./install.sh
ENV TERM=xterm
ENV CUSTOM_WALLET=
ENV XWP_WALLET=
ENV DOGE_WALLET=
ENV BTC_WALLET=
ENV RVN_WALLET=
ENV XMR_WALLET=
ENV XTZ_WALLET=
ENV AECurrency=
ENV REGION=us
ENV SSL=1
ENV MINER_NAME=
ENV ALGORITHM=
ENV EXCLUDE_COIN_SYMBOL=
ENV EXCLUDE_ALGORITHM=
ENV EXCLUDE_POOL_NAME=Nicehash
ENV EXCLUDE_COIN=
ENV EXCLUDE_MINER_NAME=CcminerMTP,CcminerMTP10,Nsgminer
ENV POOLS=
ENV BENCHMARK_INTERVAL=30
ENV PROHASHING=
ENV MINING_DUTCH=
COPY ./run.sh /run.sh
COPY ./setup.json /RainbowMiner/setup.json
ENTRYPOINT ["./run.sh"]