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 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