Simple MPTP server for hosting package pools
Go to file
2024-08-18 04:12:09 +03:00
install update: add name option for pools with same names 2024-08-18 04:01:17 +03:00
locale/tr/LC_MESSAGES fix: don't reuse section names as pool names 2024-08-18 04:12:09 +03:00
src fix: don't reuse section names as pool names 2024-08-18 04:12:09 +03:00
.clang-format first commit 2024-07-13 16:07:28 +03:00
.gitignore update: move compose file to the README 2024-08-11 01:10:51 +03:00
Dockerfile new: add docker and compose files 2024-07-20 01:52:52 +03:00
LICENSE.txt first commit 2024-07-13 16:07:28 +03:00
Makefile update: add name option for pools with same names 2024-08-18 04:01:17 +03:00
README.md update: add image name to compose file 2024-08-11 22:33:55 +03:00

pooler | MatterLinux pool server

Simple MPTP server implementation for serving MatterLinux package pools. Built on top of libmp.

Installation

If you are using MatterLinux, this package should be avaliable on the desktop repo, and you can install it with the package manager. If you are not using MatterLinux you can build it from the source and install it.

To this you will need the following tools and libraries:

  • gcc
  • make
  • libmp
  • libinih
  • gettext

After installing these dependencies, you should download the latest release. If you are building this program for development purposes, then you may also build from the latest commit. However latest commit may not always be compilable.

After obtaining the source code, you can compile the program using the make tool:

make

To install the binary and the configuration files, you can use the install command:

make install

You can also build the program using docker:

docker build --tag pooler .

And for deployment you can use docker-compose, here is an example configuration:

version: "3"

services:
  pooler:
    image: pooler
    build:
      context: ./
    ports:
      - "5858:5858/tcp"
    volumes:
      - "./config.ini:/etc/pooler/config.ini"

Just make sure you read the compose file and place the configuration file and the pools to the right place:

docker-compose up -d

Usage

To start a serving pools, specify a configuration file, default configuration file is installed in the /etc/pooler directory:

pooler /etc/pooler/config.ini

To learn more about configuration options, see this MatterLinux wiki page.