pull/9/head
mate-dev 2023-08-22 02:21:38 +00:00 zatwierdzone przez mate-dev
rodzic 5f4c6b4552
commit 4cdcb5f2b9
3 zmienionych plików z 12 dodań i 13 usunięć

Wyświetl plik

@ -6,8 +6,11 @@ RUN pip install --upgrade pip -qq
USER mesh
COPY meshtastic-matrix-relay/requirements.txt /tmp/requirements.txt
RUN mkdir /home/mesh/app
RUN pip install -qq -r /tmp/requirements.txt
COPY ./meshtastic-matrix-relay /home/mesh/app
COPY ./config.yaml /home/mesh/app/config.yaml
RUN pip install -qq -r /home/mesh/app/requirements.txt
WORKDIR /home/mesh

Wyświetl plik

@ -3,8 +3,8 @@ FROM frolvlad/alpine-glibc:glibc-2.34
RUN apk --update add --no-cache g++ shadow && \
groupadd -g 1000 mesh && useradd -ml -u 1000 -g 1000 mesh
ADD https://github.com/mate-dev/mmrelaynode/releases/latest/download/meshtasticd_linux_amd64 /home/mesh/meshtasticd_linux_amd64
RUN chmod +x /home/mesh/meshtasticd_linux_amd64
ADD https://github.com/mate-dev/mmrelaynode/releases/latest/download/meshtasticd_linux_amd64 /usr/bin/meshtasticd
RUN chmod +x /usr/bin/meshtasticd
USER mesh

Wyświetl plik

@ -1,25 +1,21 @@
version: '3'
services:
mmrelaynode:
mmrelayapp:
build:
context: .
dockerfile: Dockerfile_app
image: mmrelayapp:latest
container_name: mmrelay-app
restart: unless-stopped
command: sh -c 'mv /home/mesh/.* /tmp/'
user: 1000:1000
volumes:
- mesh_volume:/home/mesh
- ./meshtastic-matrix-relay:/home/mesh/app
- ./config.yaml:/home/mesh/app/config.yaml
networks:
- mesh_net
# command: sh -c 'mv tmp/.* . && rmdir tmp'
command: sh -c 'echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc'
entrypoint: ["sh", "-c", "sleep 30 && python app/main.py"]
mmrelayapp:
mmrelaynode:
build:
context: .
dockerfile: Dockerfile_node
@ -29,11 +25,11 @@ services:
user: 1000:1000
networks:
- mesh_net
volumes:
- mesh_volume:/home/mesh
# volumes:
# - mesh_volume:/home/mesh
ports:
- 4403:4403
entrypoint: ["sh", "-cx", "/home/mesh/meshtasticd_linux_amd64 --hwid '1234'"] #change to your own hardware id
entrypoint: ["sh", "-cx", "/usr/bin/meshtasticd -d /home/mesh --hwid '12345'"] #change to your own hardware id
networks:
mesh_net: