update: make things work with the new package system
This commit is contained in:
47
README.md
47
README.md
@ -1,33 +1,60 @@
|
||||
# tracker | MatterLinux Package Tracker
|
||||
Soruce code of MatterLinux's package tracker, located at
|
||||
# tracker | MatterLinux package tracker
|
||||
Soruce code of MatterLinux's package tracker, located at
|
||||
[tracker.matterlinux.xyz](https://tracker.matterlinux.xyz)
|
||||
|
||||
### Configuration
|
||||
Tracker can be configured to track different repos. Configuration
|
||||
is stored in the `cfg.json` file. Here is the configuration for tracking
|
||||
Tracker can be configured to track different repos. Configuration
|
||||
is stored in the `config.json` file. Here is the configuration for tracking
|
||||
official MatterLinux 24 repos:
|
||||
```
|
||||
```json
|
||||
{
|
||||
"repos": [
|
||||
"pools": [
|
||||
{
|
||||
"display": "base (stable)",
|
||||
"name": "base",
|
||||
"dir": "/srv/pools/base",
|
||||
"branch": "main",
|
||||
"source": "https://git.matterlinux.xyz/Matter/base",
|
||||
"url": "https://24.matterlinux.xyz/base"
|
||||
"url": "mptp://stable.matterlinux.xyz/base"
|
||||
},
|
||||
{
|
||||
"display": "desktop (stable)",
|
||||
"name": "desktop",
|
||||
"dir": "/srv/pools/desktop",
|
||||
"branch": "main",
|
||||
"source": "https://git.matterlinux.xyz/Matter/desktop",
|
||||
"url": "https://24.matterlinux.xyz/desktop"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Deployment
|
||||
Web server can be built and deployed with docker:
|
||||
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"
|
||||
```
|
||||
docker build --tag mattertracker .
|
||||
After saving the configuration file, you can build and run the docker container:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
Reference in New Issue
Block a user