Mirror the ansible repo from pagure
Find a file
Pierre-Yves Chibon 41ae82d75d Log which repo is being ignored, it makes debugging easier
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-01 13:58:01 +02:00
.gitignore Exclude potential local mirrors/ folder 2020-04-22 12:46:20 +02:00
LICENSE Add a LICENSE file 2020-04-22 12:37:41 +02:00
local_config.toml Add the fedora-messaging consumer to mirror a pagure project 2020-04-29 18:00:04 +02:00
mirror_from_pagure.py Rework how logging it done 2020-04-22 13:00:13 +02:00
mirror_from_pagure.service Initial import of the code 2020-04-22 12:44:46 +02:00
mirror_from_pagure.spec Initial import of the code 2020-04-22 12:44:46 +02:00
mirror_from_pagure_bus.py Log which repo is being ignored, it makes debugging easier 2020-05-01 13:58:01 +02:00
README.rst Document the creation of the mirrors folder 2020-04-29 20:49:43 +02:00

mirror_from_pagure
==================

This project is basically a small script that runs in a loop to keep locally an
up to date mirror of the ansible project hosted on pagure.io


Run this locally
----------------

* The ``mirror_from_pagure.py`` script can simply be run manually. You may want
  to adjust some of its variable at the top indicating which repo to mirror and
  where to store them on disk, but the rest should work out of the box

* The ``mirror_from_pagure_bus.py`` is a fedora-messaging consumer.
  To run it you will have to follow these steps (for dev):

  * Create the folder where mirrors are stored by default:
    ::

        mkdir mirrors

  * Adjust the example configuration file:
    ::

        sed -e "s/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/$(uuidgen)/g" \
        local_config.toml > my_config.toml

  * Run the consumer:
    ::

        PYTHONPATH=. fedora-messaging --conf my_config.toml consume


License: MIT