Mirror the ansible repo from pagure
This repository has been archived on 2025-06-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
Pierre-Yves Chibon a62e84ba30 Improving the logging so it is clearer what is happening and where
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-05 21:13:56 +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 Run black over the project 2020-05-01 13:58:47 +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 Improving the logging so it is clearer what is happening and where 2020-05-05 21:13:56 +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