Haven Protocol #XHV mining container. Ubuntu 20.04 and XMRIG v6.9.0 software
990
| POOL | Your dedicated mining pool |
| WALLET | Your wallet address |
| PASSWORD | Your worker password [optional, to justify different mining machine. Default is x] |
| ALGO | You can use this software to mine other coin. [Default is cn-heavy/xhv for haven protocol] |
| THREAD | You can specify number of CPU/THREAD for mining, default is 0 which utilized 75% of your CPU |
I installed the XMRIG software and transfer to /user/bin prior to creating the below Dockerfile for the xmrig software to be detected globally in the ubuntu environment.
Standalone
docker run -dit -e WALLET=hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK n0bility6/ubuntu-haven:latest
docker run -dit -e POOL=sg.haven.herominers:10451 -e WALLET=hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK n0bility6/ubuntu-haven:latest
docker run -dit -e -e POOL=sg.haven.herominers:10451 -e THREAD=2 -e WALLET=hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK n0bility6/ubuntu-haven:latest
Stack
version: '3.7'
services:
haven-mining:
image: n0bility6/ubuntu-haven:latest
environment:
- POOL=sg.haven.herominers.com:10451
- WALLET=hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK
- THREAD=2
Dockerfile
FROM ubuntu-xmr:latest
MAINTAINER [email protected]
#RUN apt-get update & apt-get install -y msr-tools
ENV POOL=haven.herominers.com:10451 \
WALLET=hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK \
PASSWORD=x \
ALGO=cn-heavy/xhv \
THREAD=0
ADD start-xmrig.sh /start-xmrig.sh
CMD /start-xmrig.sh
start-xmrig.sh
#!/bin/bash
if [ $THREAD -gt 0 ]
then
CPU="-t $THREAD";
else
CPU="";
fi
xmrig -o $POOL $CPU -u $WALLET -p $PASSWORD -a $ALGO -k
Donation:
BTC: 34zoU1vsoFXiLbyLf9ViXjYEkenNqJjh9G
ETH: 0x67AC8fbC42da4603D581ACe8C815A2eb6E10E70a
XHV: hvxy8PVYToBgSuQDLvBLxi8UEbTaTfdoyALHMiQTRhssYRacpbC38eDAtYRuwvP4286pKoShLz3RLJ8Boh8WVpvT4GYcSbt4oK
Content type
Image
Digest
Size
59.2 MB
Last updated
over 5 years ago
docker pull n0bility6/ubuntu-haven