Hello,
I want to set up mirror server for the source code I use for my embedded target.
 
So what I have are archives e.g. tar.gz, ... that i placed in a directory
on a webserver http://mirror.server/mirror/ and this works fine.
 
I also want to mirror the git repositories. So on the server I want to pull new commits from the origin,
and the build machine should only pull from the mirror. I do not want to use tar balls instead.
 
On the mirror there is a git-daemon running with:
git daemon --reuseaddr --base-path=/home/Depot/yocto-repos --export-all --verbose --enable=receive-pack &
 
What I suspected how it works, that i just have to put the repos in a directory and state it like this in the local.conf:
git://.*/.* git://mirror.server/ \n \ but this dows not work!?. I have to make an entry for each repo in the PREMIRRORS_prepend list in the build/local.conf file:
 
PREMIRRORS_prepend = "\
http://.*/.* http://mirror.server/mirror/ \n \
https://.*/.* http://mirror.server/mirror/ \n \
ftp://.*/.* http://mirror.server/mirror/ \n \
git://.*/.* git://mirror.server/u-boot.git \n \
git://.*/.* git://mirror.server/prelink-cross.git \n \
git://.*/.* git://mirror.server/canutils.git \n \
git://.*/.* git://mirror.server/glibc.git \n \
git://.*/.* git://mirror.server/gtk-doc-stub.git \n \
git://.*/.* git://mirror.server/kraj.localedef \n \
git://.*/.* git://mirror.server/mtd-utils.git \n \
git://.*/.* git://mirror.server/opkg-utils \n \
git://.*/.* git://mirror.server/philb.update-rc.d.git \n \
git://.*/.* git://mirror.server/pub.scm.linux.kernel.git.torvalds.linux.git \n \
git://.*/.* git://mirror.server/scm.utils.kernel.kmod.kmod.git \n \
git://.*/.* git://mirror.server/sourceware.org.git.glibc.git \n \
git://.*/.* git://mirror.server/tools.libsocketcan.git \n \
git://.*/.* git://mirror.server/yocto-kernel-tools.git \n \
git://.*/.* git://mirror.server/psplash \n \
git://.*/.* git://mirror.server/ \n"
What I observed is that this solution takes very much longer than cloning the origin repos from the origin source and sometimes i have to start over.
Is this right what i am doing, any proper documentation on this theme? Thank You
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to