Code for (Celery) worker used in our "Stream service". It reuses packit-service's worker code and implements new jobs as new handlers.
The service is similar to Packit service, but is expected to eventually follow this workflow:
Similar to packit-service we have a docker-compose.yml for fast prototyping.
It expects, that you have:
ln -s .env.fedora-source-git .env
) to .env
.secrets/fedora-source-git/dev/
or secrets/stream/dev/
populated (linked)
with secrets mostly taken from our internal repo.
"Mostly", because you should use your credential where possible.../ogr/
, ../packit/
and ../packit-service/
dirs with the respected repos cloned.
Those are mounted into the container, so you don't have to
rebuild the image each time you change anything in them.Follow the packit-service's guide for the other settings. Once you have it running (and see no errors), you can test (uses HTTPie) the webhook with:
cat tests/data/webhooks/gitlab/mr_event.json | http --verify=no https://service.localhost:8443/api/webhooks/gitlab
To deploy the service into Openshift cluster, clone the deployment repo and:
SERVICE={fedora-source-git|stream} DEPLOYMENT={deployment} make deploy
The image is currently based on the packit-worker image but that might change in the future to decouple those.
For running locally with docker-compose, build it with docker-compose build
.
For deploying in cluster, the image is
built and pushed
to Quay.io whenever you push to main
.
Or you can rebuild manually in
Actions.
Locally: make test-image
&& make check-in-container
CI: Zuul