2024-07-13 13:07:28 +00:00
|
|
|
# pooler | MatterLinux pool server
|
|
|
|
Simple MPTP server implementation for serving MatterLinux package pools.
|
|
|
|
Built on top of [`libmp`](https://git.matterlinux.xyz/Matter/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](https://git.matterlinux.xyz/Matter/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:
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
To install the binary and the configuration files, you can use the `install` command:
|
|
|
|
```bash
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also build the program using docker:
|
|
|
|
```bash
|
|
|
|
docker build --tag pooler .
|
|
|
|
```
|
|
|
|
|
2024-08-10 22:10:51 +00:00
|
|
|
And for deployment you can use docker-compose, here is an example configuration:
|
|
|
|
```yaml
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
pooler:
|
2024-08-11 19:33:55 +00:00
|
|
|
image: pooler
|
2024-08-10 22:10:51 +00:00
|
|
|
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:
|
2024-07-19 22:52:52 +00:00
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
2024-07-13 13:07:28 +00:00
|
|
|
### Usage
|
|
|
|
To start a serving pools, specify a configuration file, default configuration file is
|
|
|
|
installed in the `/etc/pooler` directory:
|
|
|
|
```bash
|
|
|
|
pooler /etc/pooler/config.ini
|
|
|
|
```
|
|
|
|
To learn more about configuration options, see this MatterLinux [wiki page](https://matterlinux.xyz/wiki/pooler).
|