Instead of having to rewrite the service file with parameters, leverage Env file to pass default parameters values.
45 lines
1.4 KiB
Markdown
45 lines
1.4 KiB
Markdown
OBS Status Service
|
|
==================
|
|
|
|
Reports build status of OBS service as an easily to produce SVG
|
|
|
|
Requests for individual build results:
|
|
|
|
/status/obs:project/package/repo/arch
|
|
|
|
where `repo` and `arch` are optional parameters.
|
|
|
|
Requests for project results
|
|
|
|
/status/obs:project
|
|
|
|
Get requests for / will also return 404 statu normally. If the Backend redis
|
|
server is not available, it will return 500
|
|
|
|
|
|
Areas of Responsibility
|
|
-----------------------
|
|
|
|
* Monitors RabbitMQ interface for notification of OBS package and project status
|
|
* Produces SVG output based on GET request
|
|
* Cache results (sqlite) and periodically update results from OBS (in case of messages are missing)
|
|
|
|
|
|
Target Usage
|
|
------------
|
|
|
|
* README.md of package git or project git
|
|
* comment section of a Gitea PR
|
|
|
|
Running
|
|
-------
|
|
|
|
Default parameters can be changed by env variables
|
|
|
|
| Environment variable | Default | Description
|
|
|---------------------------------|-----------------------------|------------
|
|
| `OBS_STATUS_SERVICE_OBS_URL` | https://build.opensuse.org | Location for creating build logs and monitor page build results
|
|
| `OBS_STATUS_SERVICE_LISTEN` | [::1]:8080 | Listening address and port
|
|
| `OBS_STATUS_SERVICE_CERT` | /run/obs-status-service.pem | Location of certificate file for service
|
|
| `OBS_STATUS_SERVICE_KEY` | /run/obs-status-service.pem | Location of key file for service
|