added p2pool

This commit is contained in:
Matthew Tran 2023-09-10 12:16:28 +00:00
parent 83a89e548b
commit c2c7a956c1
6 changed files with 25 additions and 4 deletions

3
.gitignore vendored
View File

@ -4,6 +4,9 @@ __pycache__
# monerod # monerod
monerod/.bitmonero monerod/.bitmonero
# p2pool
p2pool/cache
# minecraft # minecraft
minecraft/world minecraft/world

View File

@ -5,19 +5,20 @@ services:
entrypoint: ["/bin/sh", "/home/matt/entry.sh"] entrypoint: ["/bin/sh", "/home/matt/entry.sh"]
ports: ports:
- "18080:18080" - "18080:18080"
- "18081:18081"
- "18083:18083" - "18083:18083"
volumes: volumes:
- ./monerod/.bitmonero:/home/matt/.bitmonero - ./monerod/.bitmonero:/home/matt/.bitmonero
p2pool: p2pool:
restart: always restart: always
build: p2pool/. build: p2pool/.
# entrypoint: ["/bin/sh", "/home/matt/entry.sh"] entrypoint: ["/bin/sh", "/home/matt/entry.sh"]
ports: ports:
- "3333:3333" - "3333:3333"
- "37888:37888" - "37888:37888"
- "37889:37889" - "37889:37889"
# volumes: volumes:
# - ./monerod/.bitmonero:/home/matt/.bitmonero - ./p2pool/cache:/home/matt/cache
minecraft: minecraft:
restart: always restart: always
build: minecraft/. build: minecraft/.

View File

@ -2,6 +2,9 @@
monero/monerod \ monero/monerod \
--prune-blockchain \ --prune-blockchain \
--rpc-bind-ip 0.0.0.0 \
--confirm-external-bind \
--restricted-rpc \
--zmq-pub tcp://0.0.0.0:18083 \ --zmq-pub tcp://0.0.0.0:18083 \
--out-peers 64 --in-peers 32 \ --out-peers 64 --in-peers 32 \
--add-priority-node=node.supportxmr.com:18080 \ --add-priority-node=node.supportxmr.com:18080 \

1
p2pool/.dockerignore Normal file
View File

@ -0,0 +1 @@
cache

View File

@ -1,9 +1,15 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update && apt-get upgrade RUN apt-get update && apt-get upgrade
RUN apt-get install -y wget
RUN useradd -m matt RUN useradd -m matt
USER matt USER matt
WORKDIR /home/matt WORKDIR /home/matt
# TODO everything else # currently v3.6.2
RUN wget https://github.com/SChernykh/p2pool/releases/download/v3.6.2/p2pool-v3.6.2-linux-x64.tar.gz
RUN tar xvf p2pool-v3.6.2-linux-x64.tar.gz
RUN mv p2pool-v3.6.2-linux-x64/p2pool ./p2pool
COPY --chown=matt:matt entry.sh ./

7
p2pool/entry.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
cd cache
~/p2pool \
--mini \
--host monerod \
--wallet 42j7pyNRf8WE96D1xb6pjPWCwaDaYYevwZSPpELbTJjnXiKp7Lhtahbhb5Gc3p2BVxgMB3FEGNPUcbST1oZds6nBERA4jrQ