From Fedora Project Wiki

Fedmsg POSTer

The goal of this project is to create Fedora APP which parses fedmsg messages and generates custom POST requests based on them.

Main use case

Right now there are lot of Docker images based on Fedora which simply aren't rebuilt when their core packages are updated. The main use-case is the rebuild of Docker images when the particular package hits the stable repository.

The idea is that user would would define the Fedora base image he is using in the Dockerfile, additional packages he is installing and link generated by Docker Registry to trigger the build. Once one of the packages matching the user's selection gets into the stable, the POST request to Docker Registry is sent and the Docker image rebuilds.

Other use cases

The project could be optionally implemented in more general way to allow matching any fedmsg message and sending user defined POST requests.

The idea is that user would define the topic of message he is interested in, the body of POST request to be sent and the URL to which the request should be sent. The body of POST request would contain the $variables which would be later replaced by values from fedmsg message data.

This way, the project could be used as general fedmsg ---[POST]---> another_app gateway. If implemented that way, it would be great to add some sort of templates like "Trigger Docker image rebuild on following packages update".