kopia lustrzana https://github.com/mate-dev/mmrelaynode
newFW
rodzic
d1454d87a4
commit
824bddecda
|
@ -6,8 +6,11 @@ RUN pip install --upgrade pip -qq
|
||||||
|
|
||||||
USER mesh
|
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
|
WORKDIR /home/mesh
|
||||||
|
|
|
@ -3,8 +3,8 @@ FROM frolvlad/alpine-glibc:glibc-2.34
|
||||||
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
|
||||||
|
|
||||||
ADD https://github.com/mate-dev/mmrelaynode/releases/latest/download/meshtasticd_linux_amd64 /home/mesh/meshtasticd_linux_amd64
|
ADD https://github.com/mate-dev/mmrelaynode/releases/latest/download/meshtasticd_linux_amd64 /usr/bin/meshtasticd
|
||||||
RUN chmod +x /home/mesh/meshtasticd_linux_amd64
|
RUN chmod +x /usr/bin/meshtasticd
|
||||||
|
|
||||||
USER mesh
|
USER mesh
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,21 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
mmrelaynode:
|
mmrelayapp:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile_app
|
dockerfile: Dockerfile_app
|
||||||
image: mmrelayapp:latest
|
image: mmrelayapp:latest
|
||||||
container_name: mmrelay-app
|
container_name: mmrelay-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: sh -c 'mv /home/mesh/.* /tmp/'
|
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
volumes:
|
volumes:
|
||||||
- mesh_volume:/home/mesh
|
- mesh_volume:/home/mesh
|
||||||
- ./meshtastic-matrix-relay:/home/mesh/app
|
|
||||||
- ./config.yaml:/home/mesh/app/config.yaml
|
|
||||||
networks:
|
networks:
|
||||||
- mesh_net
|
- mesh_net
|
||||||
# command: sh -c 'mv tmp/.* . && rmdir tmp'
|
|
||||||
command: sh -c 'echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc'
|
command: sh -c 'echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc'
|
||||||
entrypoint: ["sh", "-c", "sleep 30 && python app/main.py"]
|
entrypoint: ["sh", "-c", "sleep 30 && python app/main.py"]
|
||||||
|
|
||||||
mmrelayapp:
|
mmrelaynode:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile_node
|
dockerfile: Dockerfile_node
|
||||||
|
@ -29,11 +25,11 @@ services:
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
networks:
|
networks:
|
||||||
- mesh_net
|
- mesh_net
|
||||||
volumes:
|
# volumes:
|
||||||
- mesh_volume:/home/mesh
|
# - mesh_volume:/home/mesh
|
||||||
ports:
|
ports:
|
||||||
- 4403:4403
|
- 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:
|
networks:
|
||||||
mesh_net:
|
mesh_net:
|
||||||
|
|
Ładowanie…
Reference in New Issue