Created
September 2, 2017 18:12
-
-
Save yury-sannikov/de4e83881ea2adb315ffdc4057d5130a to your computer and use it in GitHub Desktop.
GPU Docker
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:8.0-cudnn7-devel | |
RUN apt-get update && \ | |
apt-get -y dist-upgrade && \ | |
apt-get -y install \ | |
kmod \ | |
make \ | |
build-essential \ | |
cmake \ | |
cpp \ | |
g++ \ | |
gcc \ | |
libatlas-base-dev \ | |
curl \ | |
python-pip \ | |
openmpi-bin \ | |
libopenmpi-dev \ | |
libjsoncpp-dev \ | |
libhdf5-dev \ | |
openssh-client \ | |
zlib1g-dev | |
RUN pip install awscli | |
ENV GPU_DRIVER_VERSION=384.69 | |
RUN cd /tmp && \ | |
curl -LO http://us.download.nvidia.com/XFree86/Linux-x86_64/$GPU_DRIVER_VERSION/NVIDIA-Linux-x86_64-$GPU_DRIVER_VERSION.run && \ | |
chmod +x ./NVIDIA-Linux-x86_64-$GPU_DRIVER_VERSION.run && \ | |
./NVIDIA-Linux-x86_64-$GPU_DRIVER_VERSION.run -s --no-kernel-module && \ | |
rm -rf /tmp/* | |
ENV PATH=/usr/local/openmpi/bin/:/usr/local/cuda/bin/:${PATH} \ | |
LD_LIBRARY_PATH=/usr/local/lib/:${LD_LIBRARY_PATH} | |
RUN mkdir ethminer && cd ethminer && \ | |
curl -LO https://github.com/ethereum-mining/ethminer/releases/download/v0.12.0.dev2/ethminer-0.12.0.dev2-Linux.tar.gz && \ | |
tar -xvzf ethminer-0.12.0.dev2-Linux.tar.gz | |
CMD /ethminer/bin/ethminer --cuda-parallel-hash 4 -G -F $ETHMINER_FARM_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment