add nomadnet
This commit is contained in:
parent
3fde0ef154
commit
b04a4faa0a
4 changed files with 30 additions and 0 deletions
20
nomadnet/Containerfile
Normal file
20
nomadnet/Containerfile
Normal file
|
|
@ -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"]
|
||||
2
nomadnet/launch.sh
Executable file
2
nomadnet/launch.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
podman run --rm -d --network=host -v ./config:/app/config:Z -v ~/.config/rnsd:/app/reticulum:Z nomadnet
|
||||
3
nomadnet/run.sh
Executable file
3
nomadnet/run.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
source venv/bin/activate
|
||||
nomadnet --config /app/config --rnsconfig /app/reticulum -d
|
||||
5
nomadnet/setup.sh
Executable file
5
nomadnet/setup.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
pwd
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install nomadnet
|
||||
Loading…
Add table
Add a link
Reference in a new issue