Mirroring xenomai.org
Hi,
according to xenomai.org server statistics, some xenomai users are mirroring xenomai.org git repositories. In order to make things easy, grokmirror is now set up on xenomai.org. The manifest is available at:
http://git.xenomai.org/manifest.js.gz
or
https://git.xenomai.org/manifest.js.gz
You can read more about grokmirror here:
https://www.kernel.org/mirroring-kernelorg-repositories.html
and here:
https://github.com/mricon/grokmirror
But, to summarize, writing to repos-xenomai.conf:
[xenomai.org]
site = git://git.xenomai.org
manifest = https://git.xenomai.org/manifest.js.gz
toplevel = /tmp/xeno-gits
mymanifest = /tmp/xeno-gits/manifest.js.gzprojectslist_symlinks = nopost_update_hook =
purgeprotect = 5default_owner = Xenomai
log = /tmp/xeno-gits/grok-pull.log
loglevel = infopull_threads = 2
include = *
exclude =
And running grok-pull -c /path/to/repos-xenomai.conf in a crontab should be enough to set a mirror up in /tmp/xeno-gits. When nothing changed, the date of the manifest file will be enough to avoid downloading anything, which makes the process very light.
You can tweak the include line to only mirror some repositories. Note however that if you want to mirror one of the ipipe gits, since the I-pipe git now makes reference to the linux and linux stable git, you will also have to mirror the linux and linux-stable git (which are mirrored by xenomai). So, for instance, to mirror the official ipipe git only, you would write:
include = /kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
/kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git /ipipe.git
instead of include = *
Regards.
Signature · 2 lines
Gilles. https://click-hack.org
Quoted 5 lines · Gilles Chanteperdrix
Hi,
according to xenomai.org server statistics, some xenomai users are mirroring xenomai.org git repositories. In order to make things easy, grokmirror is now set up on xenomai.org.
Unfortunately, this broke http/https checkout for ipipe* gits. The reason is that the "alternate" file in the ipipe gits contains the absolute path to the kernel.org repositories, which does not work for http/https checkouts. I will need to spend more time fixing this. In the mean time, I revert the ipipe* gits to their former contents, without references.
Signature · 2 lines
Gilles. https://click-hack.org
Quoted 7 lines · Gilles Chanteperdrix
Quoted 5 lines · Gilles Chanteperdrix
Hi,
according to xenomai.org server statistics, some xenomai users are mirroring xenomai.org git repositories. In order to make things easy, grokmirror is now set up on xenomai.org.
Quoted 6 lines
Unfortunately, this broke http/https checkout for ipipe* gits. The reason is that the "alternate" file in the ipipe gits contains the absolute path to the kernel.org repositories, which does not work for http/https checkouts. I will need to spend more time fixing this. In the mean time, I revert the ipipe* gits to their former contents, without references.
Hi,
Since yesterday, the ipipe gits are now references to the linux-stable git. I could not find a way to "nest" the references, have the ipipe git be references to both linux-stable.git and linux.git.
So, this means that a typical grokmirror configuration, saving the mirrors in /var/xeno-gits would be:
[xenomai.org]
site = git://git.xenomai.org
manifest = https://git.xenomai.org/manifest.js.gz
toplevel = /var/xeno-gits
mymanifest = /var/xeno-gits/manifest.js.gzprojectslist_symlinks = nopost_update_hook =
purgeprotect = 5default_owner = Xenomai
log = /var/xeno-gits/grok-pull.log
loglevel = infopull_threads = 2
include = *
exclude =
If you want to only mirror ipipe.git and say, ipipe-gch.git and want to benefit from sharing the linux-stable repository, the include line should be replaced with:
include = /kernel.org/linux-stable.git
/ipipe.git
/ipipe-gch.git
Now, if you want to only mirror ipipe.git and do not care to have a separate linux-stable.git repository, the include line can be replaced with:
ignore_repo_references = yes
include = /ipipe.git
Also note that another advantage of the grokmirror tools is the grok-fsck tool, which cleans up the repositories, and spread the work over time.
If following these changes, something does not work, please report the problem on this mailing list.
Regards.
Signature · 2 lines
Gilles. https://click-hack.org