Skip to content

add dockerfile for lxmf_distribution_group_extended #10

@wallaby-gopher

Description

@wallaby-gopher

Hello,
I know a lot of people like to use docker for server styled systems, so I think it would be beneficial if you threw something like this in there for folk to use:

volumes:
  groupchat:
services:
  groupchat:
    build:
        dockerfile_inline: |
            FROM python:alpine
            RUN pip install --upgrade pip \
                && pip install --upgrade rns \
                #&& pip install pyserial netifaces \
                && pip install lxmf \
                && wget https://raw.githubusercontent.com/SebastianObi/LXMF-Tools/main/lxmf_distribution_group_extended/lxmf_distribution_group_extended.py \
                && chmod +x lxmf_distribution_group_extended.py \
    init: true
    pull_policy: always
    tty: true #to keep it running
    container_name: "groupchat"
    command: ./lxmf_distribution_group_extended.py
    volumes:
      - groupchat:/root/
      - type: bind
        source: /[path to your config.cfg]/config.cfg
        target: /root/.config/lxmf_distribution_group_extended/config.cfg
      - type: bind
        source: /[path to your data.cfg]/data.cfg
        target: /root/.config/lxmf_distribution_group_extended/data.cfg
    configs:
      - source: config
        target: /root/.reticulum/config
    restart: always


configs:
  config:
    content: |
        [reticulum]
        enable_transport = True
        share_instance = Yes
        loglevel = 7
        [interfaces]
         [[RNS Testnet Amsterdam]]
             type = TCPClientInterface
             enabled = yes
             target_host = amsterdam.connect.reticulum.network
             target_port = 4965

Thanks for the cool groupchat!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions