remove mining shit
parent
e1ad904f27
commit
447cb9edaf
@ -0,0 +1,2 @@
|
|||||||
|
data
|
||||||
|
.env
|
@ -1,3 +1,59 @@
|
|||||||
# docker-wownero
|
# Wownero
|
||||||
|
|
||||||
Run WOWOps :tm: with containers because why the hell not.
|
Container images for the official Wownero software code compiled or downloaded to provide daemon, wallet CLI, and wallet RPC binaries.
|
||||||
|
|
||||||
|
[Dockerfiles](./dockerfiles/) are available for building images of your choice; `wownerod_nocompile` can be used for fetching pre-built binaries, the `wownerod_compile_*` are used for fully building and compiling the C++ software.
|
||||||
|
|
||||||
|
## Node-in-a-box
|
||||||
|
|
||||||
|
The simplest way to get started is to use `docker-compose` and turn up the provided services, including the Wownero daemon, monitoring tools, and a visualization/graphing tool.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose up -d
|
||||||
|
# wownerod available at ports 34567 and 34568
|
||||||
|
# prometheus available at port 9090
|
||||||
|
# exporter (/metrics) available at port 9000
|
||||||
|
# grafana available at port 3000
|
||||||
|
```
|
||||||
|
|
||||||
|
You can host the node on an official DNS endpoint for public usage or keep it local for your own private usage.
|
||||||
|
|
||||||
|
![](files/static/graf1.png)
|
||||||
|
|
||||||
|
![](files/static/graf2.png)
|
||||||
|
|
||||||
|
## Manual Daemon and Wallet Setup
|
||||||
|
|
||||||
|
The node and wallet software is in the same package, so both can be used from within the Docker container.
|
||||||
|
|
||||||
|
```
|
||||||
|
# build container image by fetching binaries
|
||||||
|
docker build -t wownero -f dockerfiles/wownerod_nocompile dockerfiles
|
||||||
|
|
||||||
|
# or build container image by compiling from source (simple)
|
||||||
|
docker build -t wownero -f dockerfiles/wownerod_compile_simple dockerfiles
|
||||||
|
|
||||||
|
# create network bridge so containers can communicate
|
||||||
|
docker network create --driver=bridge wownero
|
||||||
|
|
||||||
|
# run wownero daemon with RPC bindings
|
||||||
|
docker run -d --rm --name wownero-daemon \
|
||||||
|
--net=wownero \
|
||||||
|
-v daemon:/data \
|
||||||
|
-p 34568:34568 \
|
||||||
|
wownero \
|
||||||
|
wownerod \
|
||||||
|
--data-dir=/data \
|
||||||
|
--rpc-bind-ip=0.0.0.0 \
|
||||||
|
--confirm-external-bind \
|
||||||
|
--non-interactive
|
||||||
|
|
||||||
|
# run wownero-wallet-cli
|
||||||
|
docker run --rm -it --name wownero-wallet \
|
||||||
|
--net=wownero \
|
||||||
|
-v wallet:/data \
|
||||||
|
wownero \
|
||||||
|
wownero-wallet-cli \
|
||||||
|
--trusted-daemon \
|
||||||
|
--daemon-address wownero-daemon:34568
|
||||||
|
```
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:21.04 as og
|
FROM ubuntu:22.04 as og
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 214 KiB |
Binary file not shown.
After Width: | Height: | Size: 346 KiB |
Before Width: | Height: | Size: 716 KiB After Width: | Height: | Size: 716 KiB |
@ -1,16 +0,0 @@
|
|||||||
FROM ubuntu:19.10
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
apt-get update \
|
|
||||||
&& apt-get install -y git build-essential cmake libuv1-dev libssl-dev libhwloc-dev \
|
|
||||||
&& git clone https://github.com/xmrig/xmrig.git /root/xmrig \
|
|
||||||
&& mkdir /root/xmrig/build \
|
|
||||||
&& cd /root/xmrig/build \
|
|
||||||
&& cmake .. \
|
|
||||||
&& make
|
|
||||||
|
|
||||||
COPY start_mining .
|
|
||||||
|
|
||||||
RUN chmod +x start_mining
|
|
||||||
|
|
||||||
ENTRYPOINT ["./start_mining"]
|
|
@ -1,16 +0,0 @@
|
|||||||
# Miner
|
|
||||||
|
|
||||||
This is a quick and dirty implementation. There's some hardcoded choices in there until I go back and update it or someone makes a PR.
|
|
||||||
|
|
||||||
```
|
|
||||||
# build container image of xmrig (mining software)
|
|
||||||
docker build -t miner .
|
|
||||||
|
|
||||||
# run simple wow miner
|
|
||||||
docker run --rm -d --name miner miner <your wow address>
|
|
||||||
|
|
||||||
# run big monero miner
|
|
||||||
docker run --rm -d --name miner miner <your xmr address> xmr 8
|
|
||||||
```
|
|
||||||
|
|
||||||
See [start_mining](./start_mining) for details of inputs.
|
|
@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
RECV_ADDR=${1}
|
|
||||||
SYMBOL=${2:-wow}
|
|
||||||
THREADS=${3:-2}
|
|
||||||
|
|
||||||
if [[ "${SYMBOL}" == "wow" ]]; then
|
|
||||||
ALGO="rx/wow"
|
|
||||||
CRYPTO="wownero"
|
|
||||||
URL=cryptonote.social:2222
|
|
||||||
ADDRESS=${RECV_ADDR}
|
|
||||||
elif [[ "${SYMBOL}" == "xmr" ]]; then
|
|
||||||
ALGO="rx/0"
|
|
||||||
CRYPTO="monero"
|
|
||||||
URL=pool.supportxmr.com:3333
|
|
||||||
ADDRESS=${RECV_ADDR}
|
|
||||||
fi
|
|
||||||
|
|
||||||
/root/xmrig/build/xmrig \
|
|
||||||
--donate-level 1 \
|
|
||||||
--url=${URL} \
|
|
||||||
--user=${ADDRESS} \
|
|
||||||
--pass=$HOSTNAME \
|
|
||||||
--algo=${ALGO} \
|
|
||||||
--keepalive \
|
|
||||||
--print-time=10 \
|
|
||||||
--threads=${THREADS}
|
|
@ -1,3 +0,0 @@
|
|||||||
data
|
|
||||||
.env
|
|
||||||
docker-compose.prod.yaml
|
|
@ -1,58 +0,0 @@
|
|||||||
# Wownero
|
|
||||||
|
|
||||||
Container image for the official Wownero source code compiled to provide daemon, wallet CLI, and wallet RPC binaries.
|
|
||||||
|
|
||||||
## Instructions
|
|
||||||
|
|
||||||
Pre-requisites:
|
|
||||||
|
|
||||||
* Recent Ubuntu Linux
|
|
||||||
* `sudo apt-get install docker.io docker-compose`
|
|
||||||
* `sudo usermod -aG docker $(whoami); logout`
|
|
||||||
|
|
||||||
## Node-in-a-box
|
|
||||||
|
|
||||||
The simplest way to get started is to use docker-compose and turn up the provided packages, including the Wownero daemon, monitoring tools, and a visualization/graphing tool.
|
|
||||||
|
|
||||||
```
|
|
||||||
cd wownero/ # in this folder
|
|
||||||
docker-compose up -d
|
|
||||||
# wownerod available at ports 34567 and 34568
|
|
||||||
```
|
|
||||||
|
|
||||||
You can host the node on an official DNS endpoint for public usage or keep it local for your own private usage.
|
|
||||||
|
|
||||||
![](files/static/wownerod-grafana.png)
|
|
||||||
|
|
||||||
## Manual Daemon and Wallet Setup
|
|
||||||
|
|
||||||
The node and wallet software is in the same package, so both can be used from within the Docker container.
|
|
||||||
|
|
||||||
```
|
|
||||||
# build container image of wownero binaries
|
|
||||||
docker build -t wownero .
|
|
||||||
|
|
||||||
# create network bridge so containers can communicate
|
|
||||||
docker network create --driver=bridge wownero
|
|
||||||
|
|
||||||
# run wownero daemon with RPC bindings
|
|
||||||
docker run -d --rm --name wownero-daemon \
|
|
||||||
--net=wownero \
|
|
||||||
-v daemon:/data \
|
|
||||||
-p 34568:34568 \
|
|
||||||
wownero \
|
|
||||||
wownerod \
|
|
||||||
--data-dir=/data \
|
|
||||||
--rpc-bind-ip=0.0.0.0 \
|
|
||||||
--confirm-external-bind \
|
|
||||||
--non-interactive
|
|
||||||
|
|
||||||
# run wownero-wallet-cli
|
|
||||||
docker run --rm -it --name wownero-wallet \
|
|
||||||
--net=wownero \
|
|
||||||
-v wallet:/data \
|
|
||||||
wownero \
|
|
||||||
wownero-wallet-cli \
|
|
||||||
--trusted-daemon \
|
|
||||||
--daemon-address wownero-daemon:34568
|
|
||||||
```
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue