2024-08-13 00:01:00 +00:00
|
|
|
# tracker | MatterLinux package tracker
|
|
|
|
Soruce code of MatterLinux's package tracker, located at
|
2024-01-17 17:15:46 +00:00
|
|
|
[tracker.matterlinux.xyz](https://tracker.matterlinux.xyz)
|
2024-01-17 17:06:26 +00:00
|
|
|
|
|
|
|
### Configuration
|
2024-08-13 00:01:00 +00:00
|
|
|
Tracker can be configured to track different repos. Configuration
|
|
|
|
is stored in the `config.json` file. Here is the configuration for tracking
|
2024-02-23 18:31:38 +00:00
|
|
|
official MatterLinux 24 repos:
|
2024-08-13 00:01:00 +00:00
|
|
|
```json
|
2024-01-17 17:06:26 +00:00
|
|
|
{
|
2024-11-22 13:56:02 +00:00
|
|
|
"interval": 5,
|
2024-08-13 00:01:00 +00:00
|
|
|
"pools": [
|
2024-01-17 17:06:26 +00:00
|
|
|
{
|
2024-08-13 00:01:00 +00:00
|
|
|
"display": "base (stable)",
|
2024-01-17 17:06:26 +00:00
|
|
|
"name": "base",
|
2024-08-13 00:01:00 +00:00
|
|
|
"dir": "/srv/pools/base",
|
2024-01-17 17:06:26 +00:00
|
|
|
"branch": "main",
|
|
|
|
"source": "https://git.matterlinux.xyz/Matter/base",
|
2024-08-13 00:01:00 +00:00
|
|
|
"url": "mptp://stable.matterlinux.xyz/base"
|
2024-01-17 17:06:26 +00:00
|
|
|
},
|
|
|
|
{
|
2024-08-13 00:01:00 +00:00
|
|
|
"display": "desktop (stable)",
|
2024-01-17 17:06:26 +00:00
|
|
|
"name": "desktop",
|
2024-08-13 00:01:00 +00:00
|
|
|
"dir": "/srv/pools/desktop",
|
2024-01-17 17:06:26 +00:00
|
|
|
"branch": "main",
|
|
|
|
"source": "https://git.matterlinux.xyz/Matter/desktop",
|
2024-08-13 00:01:00 +00:00
|
|
|
"url": "mptp://stable.matterlinux.xyz/desktop"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"display": "server (stable)",
|
|
|
|
"name": "server",
|
|
|
|
"dir": "/srv/pools/server",
|
|
|
|
"branch": "main",
|
|
|
|
"source": "https://git.matterlinux.xyz/Matter/server",
|
|
|
|
"url": "mptp://stable.matterlinux.xyz/server"
|
2024-01-17 17:06:26 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Deployment
|
2024-08-13 00:01:00 +00:00
|
|
|
Web server can be built and deployed with docker compose using the following
|
|
|
|
configuration file:
|
|
|
|
```yaml
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
tracker:
|
|
|
|
image: mattertracker
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:9877:9877"
|
|
|
|
volumes:
|
|
|
|
- "./config.json:/app/config.json:ro"
|
2024-01-17 17:06:26 +00:00
|
|
|
```
|
2024-08-13 00:01:00 +00:00
|
|
|
After saving the configuration file, you can build and run the docker container:
|
|
|
|
```bash
|
2024-01-17 17:06:26 +00:00
|
|
|
docker-compose up -d
|
|
|
|
```
|