services:
ccminer:
build:
context: .
dockerfile: Dockerfile-ccminer
command: /root/ccminer/ccminer -a sha256d -o stratum+tcp://sha256.usa-west.nicehash.com:3334 -u 35wXssceVET45koSKXA93g6YKdfiMEzyDY
# restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
# device_ids: ['0', '3']
capabilities: [gpu]
FROM nvidia/cuda:11.4.1-devel-ubuntu20.04
RUN apt update
RUN apt install -y libcurl4-openssl-dev libssl-dev libjansson-dev automake autotools-dev build-essential git
RUN cd ~/ && git clone https://github.com/tpruvot/ccminer.git -b linux
RUN cd ~/ccminer && ./autogen.sh && ./configure --with-cuda=/usr/local/cuda && make -j$(($(nproc)+1)) && make install
$ docker-compose up --build $ docker-compose down
services:
zenemy:
build:
context: .
dockerfile: Dockerfile-zenemy
command: /root/z-enemy -a kawpow -o stratum+tcp://kawpow.usa-west.nicehash.com:3385 -u 35wXssceVET45koSKXA93g6YKdfiMEzyDY
# restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
# device_ids: ['0', '3']
capabilities: [gpu]
FROM nvidia/cuda:10.0-devel-ubuntu14.04
# Remove nvidia apt package sites for ubuntu 14. Because it's too old and deprecated.
RUN rm /etc/apt/sources.list.d/*
RUN apt-get update
RUN apt-get install -y wget libcurl3 libjansson-dev
RUN cd ~/ && wget -O - 'https://github.com/zealot-rvn/z-enemy/releases/download/kawpow262/z-enemy-2.6.2-cuda100.tar.gz' | tar xzvf -
# need libcrypt
RUN cd ~/ && wget --no-check-certificate -O - 'https://www.openssl.org/source/openssl-1.1.1l.tar.gz' | tar xzvf -
RUN cd ~/openssl-1.1.1l && ./config && make && make install
# need GLIBCXX_3.4.21
RUN cd ~/ && wget -q -O libstdc++6 http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.12_amd64.deb && dpkg --force-all -i libstdc++6
RUN strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCX
$ docker-compose up --build $ docker-compose down
$ sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev $ git clone https://github.com/xmrig/xmrig.git $ mkdir xmrig/build && cd xmrig/build $ cmake .. $ make -j$(nproc)
$ xmrig -o randomxmonero.usa-west.nicehash.com:3380 -u 35wXssceVET45koSKXA93g6YKdfiMEzyDY -a randomx --nicehash Ctrl+C
CPU | Core i5 (8th gen) |
RAM | 32GB |
GPU | NVIDIA RTX2070 8GB |
週 | 0.000222 BTC | \1,222.49 |
月 | 0.000950 BTC | \5,239.25 |
年 | 0.011563 BTC | \63,744.22 |