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