Skip to content

Commit cfb4fbf

Browse files
authored
Replacing ethminer w/ nsfminer (#10)
* Replacing ethminer w/ nsfminer * Making image backwards compatible * changelog
1 parent e9b7823 commit cfb4fbf

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/miner-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- name: build and test
4040
run: |
4141
docker build . -t ghcr.io/hfuss/miner:${{ steps.versions.outputs.dirty-version }}
42+
docker run -i ghcr.io/hfuss/miner:${{ steps.versions.outputs.dirty-version }} 'nsfminer --help'
4243
docker run -i ghcr.io/hfuss/miner:${{ steps.versions.outputs.dirty-version }} 'ethminer --help'
4344
docker push ghcr.io/hfuss/miner:${{ steps.versions.outputs.dirty-version }}
4445
working-directory: miner

miner/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1515
### Dependencies
1616
- ...
1717

18+
## [v0.3.0]
19+
### Changed
20+
- Using up-to-date [`nsfminer`](https://github.com/no-fee-ethereum-mining/nsfminer) instead of [`ethminer`](https://github.com/ethereum-mining/ethminer)
21+
22+
### Dependencies
23+
- Base image `docker.io/nvidia/cuda:11.2-devel-ubuntu18.04`
24+
- New Ethereum miner [`https://github.com/no-fee-ethereum-mining/nsfminer@v1.2.4`](https://github.com/no-fee-ethereum-mining/nsfminer/releases/tag/v1.2.4)
25+
26+
1827
## [v0.2.1]
1928
### Changed
2029
- API server listens on all interfaces in read-only mode

miner/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/nvidia/cuda:11.1-devel-ubuntu18.04 as base
1+
FROM docker.io/nvidia/cuda:11.2.0-devel-ubuntu18.04 as base
22
LABEL maintainer=haydenfuss@gmail.com
33
LABEL org.opencontainers.image.source=https://github.com/hfuss/ethernetes
44

@@ -10,16 +10,15 @@ RUN mkdir /ethminer
1010
WORKDIR /ethminer
1111

1212
RUN apt-get install -y curl \
13-
&& curl -sL -o ethminer.tgz https://github.com/ethereum-mining/ethminer/releases/download/v0.19.0-alpha.0/ethminer-0.19.0-alpha.0-cuda-8-linux-x86_64.tar.gz \
13+
&& curl -sL -o ethminer.tgz https://github.com/no-fee-ethereum-mining/nsfminer/releases/download/v1.2.4/nsfminer_1.2.4-ubuntu_18.04-cuda_11.2-opencl.tgz \
1414
&& tar -xzvf ethminer.tgz \
15-
&& mv bin/ethminer /usr/local/bin/ \
16-
&& mkdir /usr/local/bin/kernels \
17-
&& mv bin/kernels/* /usr/local/bin/kernels/ \
15+
&& mv nsfminer /usr/local/bin/ \
1816
&& rm -rf *
1917

2018
FROM base as final
2119

22-
COPY --from=ethminer /usr/local/bin/ethminer /usr/local/bin/ethminer
20+
COPY --from=ethminer /usr/local/bin/nsfminer /usr/local/bin/nsfminer
21+
RUN ln -sf /usr/local/bin/nsfminer /usr/local/bin/ethminer
2322

2423
# TODO see if these env vars do anything still
2524
ENV GPU_FORCE_64BIT_PTR=0 \
@@ -34,5 +33,5 @@ ENV GPU_FORCE_64BIT_PTR=0 \
3433
WORKER_ID=rdu-01a
3534

3635
ENTRYPOINT ["sh", "-c"]
37-
CMD ["ethminer -U -P stratum+tls12://${WALLET_ADDRESS}.${WORKER_ID}@${MINE_POOL}:${STRATUM_TLS_PORT} --report-hashrate --api-port -${API_PORT}"]
36+
CMD ["nsfminer -U -P stratum+tls12://${WALLET_ADDRESS}.${WORKER_ID}@${MINE_POOL}:${STRATUM_TLS_PORT} --report-hashrate --api-port -${API_PORT}"]
3837
EXPOSE ${API_PORT}/tcp

miner/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.3.0

0 commit comments

Comments
 (0)