Post
Topic
Board Mining (Altcoins)
Re: [ANN] dstm's ZCash / Equihash Nvidia Miner v0.5.8 (Linux / Windows)
by
NameTaken
on 18/01/2018, 13:08:38 UTC
I created a Dockerfile for dstm 0.5.8.
I've found that using docker simplifies the management of my Ubuntu mining rig.
No more 'screen' or writing systemd/init scripts!

Requires https://github.com/NVIDIA/nvidia-docker

https://github.com/skinlayers/docker-dstm-zcash-cuda-miner


If you find this useful, feel free to toss some coin my way.

ETH: 0x75F4363b09166FDf8702F41502E90D21A3F2Afb9
ZEN: znY2eiUwdx9Pj4EzRkktZqRWHfEfX7o9gkW
FTC: 6nDBmQE65gy7BbcUYbYPttc9EYA7eNKN3g
ZCL: t1cSvJsEBWCipA4CY9K7oi9sKRQgb3EG76T
VIVO: VVmjio2zqGgfnvmkEU9bZcxXmFpNswusig
TZC: Tn6K9mw6bKc8R447CrpeEMazFcve8vEg1a
LBC: bXp34GVRLnQgTTid9x6nMorHYjq1GzFwz7
GBX: GTeMA2kehXf2E7DqPGEGVSsb1gQWxpg5Lx
BTC: 196h6xSrcjEPMf7jRQZbNBQcAB3twDMHE6
GPU environemt variables is only used by Claymore and sgminer. Use sha1sum from OP. Add BUILD_DEPENDENCIES and RUNTIME_DEPENDENCIES as ARG.

Code:
FROM nvidia/cuda:9.0-base-ubuntu16.04
LABEL maintainer="skinlayers@gmail.com"

ARG ARCHIVE_URL="https://docs.google.com/uc?export=download&id=19fSFYqoeOhOkxQqKnGpNI3n-7TIppHnq"
ARG ARCHIVE_SHA256="827b137e061fe1da8f8fbcea12cec22449d3ae13"
ARG BUILD_DEPENDENCIES="curl ca-certificates"
ARG RUNTIME_DEPENDENCIES="openssl"

COPY ./docker-entrypoint.sh /
RUN useradd -m miner && \
    apt-get update && \
    apt-get -y install --no-install-recommends $BUILD_DEPENDENCIES && \
    curl -L "$ARCHIVE_URL" | tar -xzC /usr/local/bin/ --strip 1 && \
    echo "$ARCHIVE_SHA256 /usr/local/bin/zm" > checksum && \
    sha1sum -c checksum && \
    apt-mark manual $RUNTIME_DEPENDENCIES && \
    apt-get remove --purge -y --auto-remove $BUILD_DEPENDENCIES $(apt-mark showauto) && \
    apt-get -y install $RUNTIME_DEPENDENCIES && \
    rm -r /var/lib/apt/lists/* && \
    chmod 0755 /docker-entrypoint.sh

USER miner
EXPOSE 2222
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["zm"]