Replies: 2 comments 2 replies
-
I updated the script (now named github-mirror.sh). To be more flexible and to support both orgs and users. Thus now you can use this single script to mirror both vyos and dd010101 or any other GitHub org/user. The script is simple so I don't see why to use more complicated solution written in Go, if you can use simple bash script for your use-case. This way you can fix or modify the script by yourself easily and you don't rely on another project to fix some edge-case/bug for example. The usage now looks like this:
Read the github-mirror.sh for details. I also added the description support. The URLs in your cgit are broken because you are mixing gitweb and cgit and incompatible git backend nginx path routing (the git backend is catching the links for the cgit, that's why it's broken). I don't see the point of mixing gitweb and cgit since they provide the same functionality. Thus I updated git-mirror.md to use cgit instead of gitweb, this gives you correct nginx vhost for cgit as well. BTW: The https://github.com/vyos-contrib doesn't look like anything we do. The packer modifies existing ISO (thus you need subscription) and the vyos-apt looks like development tool for current branch - it builds only portion of the packages from vyos-build and thus it's useless for sagitta or equuleus since those use whole array of packages from all over the place. So far I didn't see any other public implementation that would allow you to create replacement for the VyOS repositories. I know only of people that do have their own private build system of some kind that does this - so there are alternative implementations but not public and/or easily portable for use by anyone. |
Beta Was this translation helpful? Give feedback.
-
Thanks, https://git.amelek.net/ now changed to use cgit, the only reason for mixing was that I didn't want to break the existing working gitweb until the new cgit works properly - it should now (I hope, please test). |
Beta Was this translation helpful? Give feedback.
-
I'd like to keep all stuff mirrored and backed up just in case anything ever disappears (or as an alternative to try while debugging network issues like recently vyos-cloud-init GH repo clone failing), preferably in one place (with subdirectories) for this project as well as vyos, accel-ppp, vyos-contrib, maybe others.
It seems cgit has better support for subdirectories than gitweb, and both can co-exist on the same server so I'm setting up cgit (not ready yet) - https://git.amelek.net/cgit/ - but running into some issues.
BTW, https://github.com/vyos-contrib is another VyOS user building their own APT repo for LTS images, may be good to work together, exchange bug fixes etc.
Beta Was this translation helpful? Give feedback.
All reactions