Skip to content

Instantly share code, notes, and snippets.

@armand1m
Forked from alexellis/base.Dockerfile
Created November 1, 2016 16:31
Show Gist options
  • Save armand1m/21f3710fc3027f1b8392773648d3db46 to your computer and use it in GitHub Desktop.
Save armand1m/21f3710fc3027f1b8392773648d3db46 to your computer and use it in GitHub Desktop.
Docker swarm service to mine into the Nice Hash pool

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

Scaleway

C1S 2.37333 Sols/s

C1M 3.58333 Sols/s

C1L 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

Intel Nuc i5 9-10 Sols/s

MacBook 12 i3 7 Sols/s

Dual Core Macbook 13" 2 Sols/s

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

#!/bin/bash
# For testing/benchmark use below
# For <= quad-cores
docker service create --name mine --replicas=10 alexellisio/nheqminer-sse2-quad
# For <= octo-cores
docker service create --name mine --replicas=10 alexellisio/alexellisio/nheqminer_cpu-sse2
# Rates/benchmark shown at: https://www.nicehash.com/index.jsp?p=miners&addr=1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh
# When happy with how this works, build a new Dockerfile overriding the CMD instruction with your own address.
# 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 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
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 destination address.
CMD ["-u", "1J6GWiBvj6CdDSQoQETymDkJonZcrFGJrh", "-t", "4"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment