kopia lustrzana https://github.com/mate-dev/mmrelaynode
Almost works
rodzic
da70ba122c
commit
d2df947dca
|
@ -1,3 +1,3 @@
|
|||
[submodule "meshtastic-matrix-relay"]
|
||||
path = meshtastic-matrix-relay
|
||||
path = node/meshtastic-matrix-relay
|
||||
url = https://github.com/geoffwhittington/meshtastic-matrix-relay
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
FROM python:3.11-slim-bookworm
|
||||
FROM python:3.11-slim-bookworm AS app
|
||||
LABEL "website"="https://github.com/mate-dev/mmrelaynode"
|
||||
RUN groupadd -g 1000 mesh && useradd -ml -u 1000 -g 1000 -s /bin/bash mesh
|
||||
RUN pip install --upgrade pip -qq
|
||||
USER mesh
|
||||
WORKDIR /home/mesh/app
|
||||
COPY meshtastic-matrix-relay /home/mesh/app
|
||||
COPY config.yaml .
|
||||
RUN pip install -qq -r /home/mesh/app/requirements.txt
|
||||
RUN pip install -qq -r /home/mesh/app/requirements.txt --no-cache-dir
|
||||
RUN echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc
|
||||
COPY config.yaml .
|
||||
#ENTRYPOINT ["sh", "-c", "sleep 30 && python main.py"]
|
|
@ -12,7 +12,7 @@ matrix_rooms: # Needs at least 1 room & channel, but supports all Meshtastic cha
|
|||
meshtastic:
|
||||
connection_type: network # Do not change!
|
||||
# serial_port: /dev/ttyUSB0 # Only used when connection is "serial"
|
||||
host: "localhost" # Do not change!
|
||||
host: "mmrelaynode" # Do not change!
|
||||
meshnet_name: "Your Meshnet Name" # This is displayed in full on Matrix, but is truncated when sent to a Meshnet
|
||||
broadcast_enabled: true
|
||||
hwid: "12345" # Change to your Hardware ID
|
|
@ -1,25 +1,30 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
mmrelaynode:
|
||||
build: node
|
||||
image: mmrelaynode:latest
|
||||
container_name: mmrelay-node
|
||||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
volumes:
|
||||
- mesh:/home/mesh
|
||||
- mesh:/home/mesh/node
|
||||
ports:
|
||||
- "4403:4403"
|
||||
networks:
|
||||
- mesh
|
||||
entrypoint: ["sh", "-c", "/usr/bin/meshtasticd -d /home/mesh/node -h 1234"]
|
||||
# entrypoint: ["sh", "-c", "/usr/bin/meshtasticd -d /home/mesh/node -h $(grep -Po 'hwid: "\K[^"]+' /home/mesh/app/config.yaml)"]
|
||||
depends_on:
|
||||
- mmrelayapp
|
||||
|
||||
mmrelayapp:
|
||||
build: app
|
||||
image: mmrelayapp:latest
|
||||
container_name: mmrelay-app
|
||||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
volumes:
|
||||
- mesh:/home/mesh
|
||||
- mesh:/home/mesh/app
|
||||
networks:
|
||||
- mesh
|
||||
entrypoint: ["sh", "-c", "sleep 30 && python main.py"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM frolvlad/alpine-glibc:glibc-2.34
|
||||
FROM frolvlad/alpine-glibc:glibc-2.34 AS node
|
||||
LABEL "website"="https://github.com/mate-dev/mmrelaynode"
|
||||
RUN apk --update add --no-cache g++ shadow && \
|
||||
groupadd -g 1000 mesh && useradd -ml -u 1000 -g 1000 mesh
|
Ładowanie…
Reference in New Issue