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