From b04a4faa0aa2131a78103e0350f0f2de38ac2e42 Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Wed, 17 Dec 2025 21:42:27 -0700 Subject: [PATCH] add nomadnet --- nomadnet/Containerfile | 20 ++++++++++++++++++++ nomadnet/launch.sh | 2 ++ nomadnet/run.sh | 3 +++ nomadnet/setup.sh | 5 +++++ 4 files changed, 30 insertions(+) create mode 100644 nomadnet/Containerfile create mode 100755 nomadnet/launch.sh create mode 100755 nomadnet/run.sh create mode 100755 nomadnet/setup.sh diff --git a/nomadnet/Containerfile b/nomadnet/Containerfile new file mode 100644 index 0000000..fd8b98f --- /dev/null +++ b/nomadnet/Containerfile @@ -0,0 +1,20 @@ +FROM debian:stable-slim + +# INSTALL PYTHON +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + python3 \ + python3-venv \ + python3-pip && \ + apt-get clean + +# SET UP VENV AND INSTALL RNSD +WORKDIR /app +COPY setup.sh ./ +RUN ./setup.sh + + +# LOAD RUN SCRIPT +COPY run.sh ./ + +ENTRYPOINT ["bash","/app/run.sh"] diff --git a/nomadnet/launch.sh b/nomadnet/launch.sh new file mode 100755 index 0000000..a04c512 --- /dev/null +++ b/nomadnet/launch.sh @@ -0,0 +1,2 @@ +#!/bin/bash +podman run --rm -d --network=host -v ./config:/app/config:Z -v ~/.config/rnsd:/app/reticulum:Z nomadnet diff --git a/nomadnet/run.sh b/nomadnet/run.sh new file mode 100755 index 0000000..5ff4ea6 --- /dev/null +++ b/nomadnet/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash +source venv/bin/activate +nomadnet --config /app/config --rnsconfig /app/reticulum -d diff --git a/nomadnet/setup.sh b/nomadnet/setup.sh new file mode 100755 index 0000000..62eba99 --- /dev/null +++ b/nomadnet/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash +pwd +python3 -m venv venv +source venv/bin/activate +pip install nomadnet