Last active
January 1, 2019 17:58
-
-
Save marsmensch/54b1bc3d9aeee30a94ef8e4c543b28da to your computer and use it in GitHub Desktop.
zumy cpuminer Dockerfile https://github.com/zumy/cpuminer/
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
# | |
# Dockerized zumy cpuminer | |
# usage: docker run marsmensch/zumy-cpuminer:latest -o stratum+tcp://nosuchpool.cloud:4235 -u <WALLET> -p x | |
# | |
# If you want to mine within an interactive shell: | |
# 1) start the container | |
# docker run --interactive --tty --entrypoint=/bin/bash marsmensch/zumy-cpuminer:latest | |
# | |
# 2) run the cpuminer manually daemon | |
# cpuminer -o stratum+tcp://nosuchpool.cloud:4235 -u <WALLET> | |
# | |
# 3) happyness | |
# | |
# | |
# cpuminer -o stratum+tcp://nosuchpool.cloud:4235 -u <WALLET> | |
FROM ubuntu:18.04 | |
MAINTAINER Florian Maier <contact@marsmenschen.com> | |
ENV GIT_PROJECT cpuminer | |
ENV GIT_URL git://github.com/zumy/${GIT_PROJECT}.git | |
ENV REFRESHED_AT 2019-01-01 | |
# install dependencies | |
RUN apt-get autoclean && apt-get autoremove && apt-get update && \ | |
apt-get -qqy install --no-install-recommends build-essential \ | |
automake ncurses-dev libcurl4-openssl-dev libssl-dev libgtest-dev \ | |
make autoconf automake libtool git apt-utils pkg-config libc6-dev \ | |
libcurl3-dev libudev-dev m4 g++-multilib unzip git python zlib1g-dev \ | |
wget bsdmainutils cmake libboost-all-dev libgmp-dev libgmp10 && \ | |
rm -rf /var/lib/apt/lists/* | |
# create code directory | |
RUN mkdir -p /opt/code/; cd /opt/code; git clone ${GIT_URL} ${GIT_PROJECT} && \ | |
mkdir -p /opt/code/${GIT_PROJECT} && cd /opt/code/${GIT_PROJECT} && \ | |
chmod u+x autogen.sh && ./autogen.sh CFLAGS="-O3 -march=native -Wall" && \ | |
./configure --with-curl && \ | |
make -j$(nproc) && make install && \ | |
rm -rf /opt/code/ | |
# no parameters display help | |
ENTRYPOINT ["/usr/local/bin/cpuminer"] | |
CMD ["-h"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment