README.md

FM Gateway

Gateway to send fedora-messaging messages to the Zuul Pagure driver web-hook service. The Gateway only acts on specific topics.

Run locally

PYTHONPATH=. fedora-messaging --conf ./conf/config.toml consume --callback=fmgateway.callback:Consumer

Container build and run

dhall text <<< '(./container.dhall).file' > Dockerfile
podman build -f Dockerfile -t quay.io/software-factory/fm-gateway

Publish

podman login quay.io
podman push quay.io/software-factory/fm-gateway

Run with Podman

podman run -it -v ./conf:/data:Z -p 127.0.0.1:8080:80 quay.io/software-factory/fm-gateway

Run on OpenShift

dhall-to-yaml --documents <<< ./oc-deploy.dhall > oc-deploy.yaml
oc apply -f ./oc-deploy.yaml