remove mining shit
This commit is contained in:
parent
e1ad904f27
commit
447cb9edaf
|
@ -0,0 +1,2 @@
|
||||||
|
data
|
||||||
|
.env
|
60
README.md
60
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
|
@ -11,27 +11,26 @@ x-log-config: &log-config
|
||||||
max-size: "50m"
|
max-size: "50m"
|
||||||
max-file: "20"
|
max-file: "20"
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.36.0
|
image: prom/prometheus:v2.36.0
|
||||||
command:
|
command:
|
||||||
- --config.file=/etc/prometheus/config.yaml
|
- --config.file=/etc/prometheus/config.yaml
|
||||||
- --storage.tsdb.path=/prometheus
|
- --storage.tsdb.path=/prometheus
|
||||||
- --storage.tsdb.retention.time=360d
|
- --storage.tsdb.retention.time=360d
|
||||||
container_name: wownero_prometheus
|
container_name: wownerod_prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:9090:9090
|
||||||
volumes:
|
volumes:
|
||||||
- prometheus:/prometheus
|
- prometheus:/prometheus
|
||||||
- ./files/prometheus/config.yaml:/etc/prometheus/config.yaml:ro
|
- ./files/prometheus/config.yaml:/etc/prometheus/config.yaml:ro
|
||||||
<<: *log-config
|
<<: *log-config
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
user: "1000"
|
user: "1000"
|
||||||
command:
|
command:
|
||||||
- -config=/etc/grafana/grafana.ini
|
- -config=/etc/grafana/grafana.ini
|
||||||
container_name: wownero_grafana
|
container_name: wownerod_grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: grafana/grafana:8.5.4
|
image: grafana/grafana:8.5.4
|
||||||
ports:
|
ports:
|
||||||
|
@ -55,19 +54,19 @@ services:
|
||||||
GF_SECURITY_ADMIN_PASSWORD: "${GF_SECURITY_ADMIN_PASSWORD}"
|
GF_SECURITY_ADMIN_PASSWORD: "${GF_SECURITY_ADMIN_PASSWORD}"
|
||||||
GF_SECURITY_ADMIN_USER: "${GF_SECURITY_ADMIN_USER}"
|
GF_SECURITY_ADMIN_USER: "${GF_SECURITY_ADMIN_USER}"
|
||||||
<<: *log-config
|
<<: *log-config
|
||||||
|
|
||||||
exporter:
|
exporter:
|
||||||
command:
|
command:
|
||||||
- --monero-addr=http://wownerod:34570
|
- --monero-addr=http://wownerod:34570
|
||||||
container_name: wownero_exporter
|
container_name: wownerod_exporter
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:9000:9000
|
||||||
build:
|
build:
|
||||||
context: dockerfiles
|
context: dockerfiles
|
||||||
dockerfile: wownerod_exporter
|
dockerfile: wownerod_exporter
|
||||||
<<: *log-config
|
<<: *log-config
|
||||||
|
|
||||||
wownerod:
|
wownerod:
|
||||||
container_name: wownero_daemon
|
container_name: wownerod_daemon
|
||||||
build:
|
build:
|
||||||
context: dockerfiles
|
context: dockerfiles
|
||||||
dockerfile: wownerod_nocompile
|
dockerfile: wownerod_nocompile
|
|
@ -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
|
@ -11,7 +11,7 @@ disable_login_form = false
|
||||||
|
|
||||||
[dashboards]
|
[dashboards]
|
||||||
min_refresh_interval = 1m
|
min_refresh_interval = 1m
|
||||||
default_home_dashboard_path = /var/lib/grafana/dashboards/wownero.json
|
default_home_dashboard_path = /var/lib/grafana/dashboards/node_dashboard.json
|
||||||
|
|
||||||
[paths]
|
[paths]
|
||||||
provisioning = /etc/grafana/provisioning
|
provisioning = /etc/grafana/provisioning
|
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