Skip to content

Instantly share code, notes, and snippets.

@ril3y
Last active February 14, 2021 17:27
Show Gist options
  • Save ril3y/24685e43bdea9da81e838325cb3d01af to your computer and use it in GitHub Desktop.
Save ril3y/24685e43bdea9da81e838325cb3d01af to your computer and use it in GitHub Desktop.
Rainbow Miner
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
@ril3y
Copy link
Author

ril3y commented Feb 10, 2021

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

@ril3y
Copy link
Author

ril3y commented Feb 13, 2021

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