Last active
February 14, 2021 17:27
-
-
Save ril3y/24685e43bdea9da81e838325cb3d01af to your computer and use it in GitHub Desktop.
Rainbow Miner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:10.2-base | |
RUN apt-get update && apt-get install -y systemd liblttng-ust0 vim iputils-ping | |
RUN apt-get -y install git software-properties-common wget dkms build-essential | |
RUN git clone https://github.com/rainbowminer/RainbowMiner | |
WORKDIR RainbowMiner | |
#ADD RainbowMiner /RainbowMiner/ | |
RUN chmod +x *.sh && ./install.sh | |
#Install powershell | |
RUN wget https://github.com/PowerShell/PowerShell/releases/download/v7.1.1/powershell_7.1.1-1.ubuntu.18.04_amd64.deb | |
RUN dpkg -i powershell_7.1.1-1.ubuntu.18.04_amd64.deb && apt-get install -f | |
RUN rm powershell_7.1.1-1.ubuntu.18.04_amd64.deb | |
RUN mkdir /RainbowMiner/Config | |
RUN mkdir /RainbowMiner/Bin | |
VOLUME /RainbowMiner/Bin | |
VOLUME /RainbowMiner/Config | |
ENV COMMAND=/bin/bash | |
CMD $COMMAND |
If you get errors running this, on the host edit this file:
/etc/nvidia-container-runtime/config.toml
and change ldconfig to look like this ldconfig = "/sbin/ldconfig"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker run -it -v /home/ril3y/Desktop/server_config:/RainbowMiner/Config -p4444:4444 --rm rainbow-miner
docker run': docker run --gpus all -it -e "COMMAND=./start.sh" -v /home/user/rainbow_config:/RainbowMiner/Config -v /home/user/rainbow_config/Bin:/RainbowMiner/Bin --rm rainbow-miner