Skip to content

Instantly share code, notes, and snippets.

@alexellis
Last active March 16, 2021 12:36
Show Gist options
  • Save alexellis/ff3347fa0e0c756bfecc4073f02ea452 to your computer and use it in GitHub Desktop.
Save alexellis/ff3347fa0e0c756bfecc4073f02ea452 to your computer and use it in GitHub Desktop.
Docker swarm service to mine into the Nice Hash pool
# Published on Docker Hub with above user alexellisio.
# If you want to rebuild your own copy, follow below instructions
# Build this on each type of machine so you have the correct CPU extensions.
FROM alexellisio/boostbase
RUN git clone -b Linux https://github.com/nicehash/nheqminer.git
RUN cd nheqminer/cpu_xenoncat/Linux/asm/ && sh assemble.sh && cd ../../../Linux_cmake/nheqminer_cpu && cmake . && make
ENTRYPOINT ["./nheqminer/Linux_cmake/nheqminer_cpu/nheqminer_cpu"]
# -u contains payment BTC address.
# -t amount of threads or $(nproc)
CMD ["-u", "1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh.gist", "-t", "4"]
# My bitcoin address is: 1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh
# please feel free to use this for benchmarking or to cent me a few fractions of a cent
# alexellisio/bootbase
FROM ubuntu:latest
WORKDIR /root/
RUN apt-get update -qy && \
apt-get install -qy cmake build-essential libboost-all-dev git ca-certificates \
--no-install-recommends

Here are some benchmarked / observed rate for Scaleway / Amazon EC2

Scaleway

C2S 2.37333 Sols/s

C2M 3.58333 Sols/s

C2L 3.88667 Sols/s

VC1L 1.88659 Sols/s 1.90951 Sols/s

VC1S 0.626649 Sols/s

VC1M 1.82333 Sols/s

EC2

t2.micro 2.6 Sols/s

c4.4xlarge 10.1286 Sols/s

Personal PC hardware

I7 Quad-core:

26 Sols/s, 48-50 Sols/s w/ AMD 7xxx series GPU

Intel Nuc i5 9-10 Sols/s

MacBook 12 i3 9 Sols/s

Dual Core Macbook 13" 2 Sols/s

MacBook Air 13" 4GB 8-9 Sols/s

Mac Mini i5

9-12 Sols/s

# My bitcoin address is: 1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh
# please feel free to use this for benchmarking or to cent me a few fractions of a cent
# It's best to build the image fresh for each type of cloud instance or CPU.
# This is because different CPUs have hardware extensions which help with solving
# EC2
docker service create --name mine --mode=global alexellisio/nheqminer-cloud:ec2
# Droplets
docker service create --mode=global --name=dropletminer alexellisio/nheqminer-cloud:digitalocean
# Rates/benchmark shown at pool page i.e.:
# https://www.nicehash.com/index.jsp?p=miners&addr=1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh
# Use this to mine on Packet, Scaleway or RPi3 ARM64 hardware
# For Kost ARM64 fork using tromp CPU solver
FROM ubuntu:xenial
WORKDIR /root/
RUN apt-get update -qy && \
apt-get install -qy cmake build-essential libboost-all-dev git ca-certificates \
--no-install-recommends
RUN git clone --recursive https://github.com/kost/nheqminer.git \
&& cd nheqminer/nheqminer \
&& mkdir build \
&& cd build \
&& cmake -DNONINTEL=1 .. \
&& make -j 96
CMD ["-u", "1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh.pk96", "-l", "equihash.eu.nicehash.com:3357"]
ENTRYPOINT ["./nheqminer/nheqminer/build/nheqminer"]
# Use this to mine on Packet, Scaleway or RPi3 ARM64 hardware
# For SIMD optimizations and fork
FROM ubuntu:xenial
WORKDIR /root/
RUN apt-get update -qy && \
apt-get install -qy cmake build-essential libboost-all-dev git ca-certificates \
--no-install-recommends
RUN git clone --recursive https://github.com/UMRnInside/nheqminer-SIMDe nheqminer \
&& cd nheqminer/nheqminer \
&& mkdir build \
&& cd build \
&& cmake -DNONINTEL=1 -DSIMDE=1 -DOPENMP=1 .. \
&& make -j 80
CMD ["-u", "1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh.pk96", "-l", "equihash.eu.nicehash.com:3357"]
ENTRYPOINT ["./nheqminer/nheqminer/build/nheqminer"]
@timelf123
Copy link

ZcashMiner::parseJob(): Invalid or unsupported block header version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment