Skip to content

Instantly share code, notes, and snippets.

@codeitlikemiley
Forked from alexellis/base.Dockerfile
Created June 10, 2017 13:50
Show Gist options
  • Save codeitlikemiley/545831ef599e8a5a4f059ac56ef1c64c to your computer and use it in GitHub Desktop.
Save codeitlikemiley/545831ef599e8a5a4f059ac56ef1c64c 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment