#2809 Support grokmirror server side
Opened 6 years ago by kevin. Modified a year ago

It would be nice if pagure supported grokmirror out of the box. ( https://github.com/mricon/grokmirror )

This would add a dep on grokmirror, but it's pretty self contained. Optionally, it could support it if the python-grokmirror package was available.

A new hook would need to be added to all repos that does:

/usr/bin/grok-manifest -m /repos/manifest.js.gz -t /repos -n pwd

Then a gitolite rm ADC would need to be added that does

/usr/bin/grok-manifest -m /repos/manifest.js.gz -t /repos -x $repo.git

(to remove repos when they are removed).

There might be some special casing to make sure private repos aren't added.

once this was in place interested parties could mirror entire installs pretty easily.


Would this be only for sources repos or all 4?

What about making it "optional", it would be trivial to have a post-update hook and then projects could simple opt-in or out.

Does that mean that /repos/manifest.js.gz would be generated/managed by pagure itself?

We could make seperate manifests for each type of repo and one for all combined?
ie, tickets-manifest, docs-manifest, etc

I don't see why anyone would opt out. If their repo is publically available why wouldn't they want to make it easier for people to mirror it?

Due to private tickets I guess this wouldn't work for our backups of the entire site, but could at least do source/docs I suppose.

Instance wide configuration option sounds fine :)

Metadata Update from @pingou:
- Issue tagged with: RFE

6 years ago

Metadata Update from @wombelix:
- Issue set to the milestone: 6.0

a year ago

Login to comment on this ticket.

Metadata