This commit is contained in:
Matthew Tran 2025-05-04 01:35:37 -07:00
parent cb8f88fd33
commit f2df23ad98
9 changed files with 29 additions and 29 deletions

11
.gitignore vendored
View File

@ -20,23 +20,12 @@ terraria/*.txt
compose.override.yml
# website # website
website/gitea website/gitea
website/certbot website/certbot
website/sendgrid.key website/sendgrid.key
# monerod
monerod/.bitmonero
# p2pool
p2pool/cache
# nas # nas
nas/*.json nas/*.json
nas/smb.conf nas/smb.conf
nas/users.sh nas/users.sh
# backup
data.zip

View File

@ -1 +0,0 @@
.bitmonero

View File

@ -3,12 +3,12 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget bzip2 RUN apt-get install -y wget bzip2
RUN groupadd -g 2001 me && useradd -u 2001 -g 2001 -m me WORKDIR /root
USER me
WORKDIR /home/me
RUN wget https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.3.4.tar.bz2 -O monerod.tar.bz2 RUN wget https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.4.0.tar.bz2 -O monerod.tar.bz2
RUN tar xvf monerod.tar.bz2 && rm monerod.tar.bz2 RUN tar xvf monerod.tar.bz2 && rm monerod.tar.bz2
RUN mv monero-x86_64-linux-gnu-v0.18.3.4 monero RUN mv monero-x86_64-linux-gnu-v0.18.4.0 monero
COPY --chown=me:me entry.sh ./ COPY entry.sh ./
CMD ["/bin/bash", "/root/entry.sh"]

View File

@ -3,6 +3,7 @@
# check bitmonero.log for log # check bitmonero.log for log
monero/monerod \ monero/monerod \
--prune-blockchain \ --prune-blockchain \
--data-dir /root/data \
--rpc-bind-port 18089 \ --rpc-bind-port 18089 \
--rpc-restricted-bind-ip 0.0.0.0 \ --rpc-restricted-bind-ip 0.0.0.0 \
--rpc-restricted-bind-port 18081 \ --rpc-restricted-bind-port 18081 \
@ -17,6 +18,6 @@ monero/monerod \
cleanup() { cleanup() {
monero/monerod exit --rpc-bind-port 18089 monero/monerod exit --rpc-bind-port 18089
} }
trap 'cleanup' TERM trap 'cleanup' SIGTERM SIGINT
tail -f /dev/null & tail -f /dev/null &
wait $! wait $!

View File

@ -1 +0,0 @@
cache

View File

@ -3,13 +3,13 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget RUN apt-get install -y wget
RUN groupadd -g 2001 me && useradd -u 2001 -g 2001 -m me WORKDIR /root
USER me
WORKDIR /home/me
# currently v4.4 # currently v4.5
RUN wget https://github.com/SChernykh/p2pool/releases/download/v4.4/p2pool-v4.4-linux-x64.tar.gz -O p2pool.tar.gz RUN wget https://github.com/SChernykh/p2pool/releases/download/v4.5/p2pool-v4.5-linux-x64.tar.gz -O p2pool.tar.gz
RUN tar xvf p2pool.tar.gz && rm p2pool.tar.gz RUN tar xvf p2pool.tar.gz && rm p2pool.tar.gz
RUN mv p2pool-v4.4-linux-x64/p2pool ./p2pool RUN mv p2pool-v4.5-linux-x64/p2pool ./p2pool
COPY --chown=me:me entry.sh ./ COPY entry.sh ./
CMD ["/bin/bash", "/root/entry.sh"]

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
cd cache mkdir -p data
cd data
exec ~/p2pool \ exec ~/p2pool \
--mini \ --mini \
--host monerod \ --host 127.0.0.1 \
--wallet 42j7pyNRf8WE96D1xb6pjPWCwaDaYYevwZSPpELbTJjnXiKp7Lhtahbhb5Gc3p2BVxgMB3FEGNPUcbST1oZds6nBERA4jrQ --wallet 42j7pyNRf8WE96D1xb6pjPWCwaDaYYevwZSPpELbTJjnXiKp7Lhtahbhb5Gc3p2BVxgMB3FEGNPUcbST1oZds6nBERA4jrQ

View File

@ -16,6 +16,13 @@ UIDS = {
} }
PORTS = { PORTS = {
"monero": [
"18080:18080", # monerod
"18081:18081",
"3333:3333", # p2pool
"37888:37888",
"37889:37889",
],
"game": [ "game": [
"25565:25565", # minecraft "25565:25565", # minecraft
"19132:19132/udp", # minecraft_bedrock "19132:19132/udp", # minecraft_bedrock

View File

@ -8,6 +8,10 @@ from pathlib import Path
SOURCE_DIR = "/var/source" SOURCE_DIR = "/var/source"
IMAGES = { IMAGES = {
"monero": [
"monerod",
"p2pool",
],
"game": [ "game": [
"minecraft", "minecraft",
"minecraft_bedrock", "minecraft_bedrock",