reticulum/docker
Laura Batalha 7dfa6ee596
tweak docker files
2025-05-04 15:20:07 +01:00
..
Dockerfile tweak docker files 2025-05-04 15:20:07 +01:00
Dockerfile.release tweak docker files 2025-05-04 15:20:07 +01:00
README.md tweak docker files 2025-05-04 15:20:07 +01:00
docker-compose.yml tweak docker files 2025-05-04 15:20:07 +01:00

README.md

Docker Images

Docker resources Reticulum service and tooling

End-user

As an end-user you can either:

  • grab prebuilt docker images from the github container registry @ ghcr.io/markqvist/reticulum:latest
  • use of the Dockerfile to create a simple docker image based on the latest rns package available at PyPi

Building from Dockerfile

To build the image, choose one:

  • Copy the Dockerfile to a directory and in that directory run:

    • docker build -t reticulum:latest .
  • From the root of this repository run:

    • docker build -t reticulum:latest -f docker/Dockerfile .

Running

Docker Run

You can run the container in various ways, a quick way to test would be interactively:

  • Create a directory to hold the configuration and other files - mkdir config
  • Start the container - docker run --rm --name reticulum -v ./config:/config -it reticulum:latest

Replace the image name to match either the one you built or pre-built github versions.

This will create a container named reticulum, mount the config directory to the directory you created above in your current working directory (./config) and automatically delete que container (--rm) when you detach from the session (files in the config directory will be retained)

You can edit the config file at ./config/config to configure rns as usual

Once the container is running, you can use other rns tools via docker exec:

docker exec -it reticulum rnpath

Docker Compose

You can also use the included example docker-compose.yml file to manage the container in a more automated way. It has some comments but if you are not familiar with it, it is probably a good idea to read the official docker compose docs

Developer

The file Dockerfile.release is meant to be used for CI, its similar to the end-user Dockerfile except that it will grab and install wheel files from the artifacts generated by the package job in the build workflow.

There are image builds available for both releases and pushes to branches to facilitate quick testing.