Last active
January 7, 2018 08:19
-
-
Save 44uk/97bd87a970313f18b7638c9f87d60cec to your computer and use it in GitHub Desktop.
Dockerfile for koto minerd
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 alpine:latest | |
MAINTAINER Yoshiyuki Ieyama <44uk@github.com> | |
ENV SRCURL=https://github.com/koto-dev/cpuminer-yescrypt/archive/master.tar.gz | |
RUN apk add --update --no-cache automake autoconf gawk build-base curl curl-dev gcc tar make \ | |
&& mkdir __workdir && cd $_ \ | |
&& curl -kL $SRCURL | tar xz --strip=1 \ | |
&& ./autogen.sh \ | |
&& ./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" \ | |
&& make && make install && make clean \ | |
&& cd ../ && rm -rf __workdir | |
ENTRYPOINT ["minerd"] | |
CMD ["--help"] | |
# Build: | |
# docker build -t cpuminer . | |
# Usage: | |
# docker run --rm -d cpuminer -a yescrypt -o stratum+tcp://$HOST:$PORT -u $WALLET -p $ANYTHING | |
# docker run --rm -d cpuminer -a yescrypt --userpass={USERNAME}:{PASSWORD} -o 127.0.0.1:8432 | |
# vim:ft=dockerfile |
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
#!/bin/bash | |
# HOST=koto.poolof.work | |
# PORT=3032 -p popo | |
# HOST=kotopool.work | |
# PORT=3333 -p popo | |
# HOST=okoto.xyz | |
# PORT=51000 | |
# HOST=jp.kpool.jp | |
# PORT=3333 | |
THREADS=2 | |
HOST=okoto.xyz | |
PORT=51000 | |
WALLET=__YOUR_WALLET_ADDRESS__ | |
docker run --rm -d --name kotominer cpuminer -a yescrypt -o stratum+tcp://$HOST:$PORT -u $WALLET -t $THREADS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment