是否有更易于使用的 gitosis 替代品?
我目前在实验室的 Ubuntu 服务器上运行 gitosis。我们定期添加新用户和存储库。我发现 gitosis.conf 语法不直观,如果我犯了一个小错误,整个 gitosis 系统就会失败,请参阅例如 这个问题。当 gitosis 失败时,它也会杀死访问包含 gitosis.conf 的 git 存储库...想想...一定有更好的方法。
我考虑过私人 GitHub 帐户,但是还有其他我可以在本地托管的帐户吗?
Are there alternatives to gitosis that are easier to use?
I currently run gitosis on a Ubuntu server for my lab. We regularly add new users and repos. I find the gitosis.conf
syntax non-intuitive, and if I make even a minor mistake the whole gitosis system fails, see for example this question on SO. When gitosis fails it also kills access to the git repository that contains gitosis.conf
... go figure... There must be a better way.
I've thought about private GitHub accounts, but is there anything else that I could host locally?
发布评论
评论(10)
Gitolite 可能是一个解决方案。
Gitolite might be a solution.
我最终只支付了 GitHub 的费用。这是我尝试过的:
Gitolite:安装实际上是棘手。我遇到了很多 SSH 密钥问题,由于我第一次尝试从 Windows 工作站进行安装,这一问题变得更加复杂。另外,Gitolite 需要运行 Git 1.6 的服务器,但我的服务器上的 Ubuntu 稳定版仅运行 Git 1.5。我本可以从源代码编译更新的 git,但到那时我已经花了 3 个小时来安装 gitolite。
Gitorious:Gitorious 需要 ruby、mysql 和无数的 gem 和软件包。正如@calmh所说,
<块引用>
Gitorious 在启动和运行时非常出色。到达那里真是一场噩梦......
那时我决定使用 GitHub:
最后的想法:如果 TurnkeyLinux 有一天能够改进他们的 修订控制设备 至 默认包含 gitorious。
I ended up just paying for GitHub. Here is what I tried:
Gitolite: The install is actually tricky. I ran into lots of SSH key trouble which was compounded by the fact that I first tried installing from a windows workstation. Also, Gitolite requires a server running Git 1.6, but Ubuntu stable on my server only runs Git 1.5. I could have compiled newer git from source, but by that point I had already sank 3 hours into my gitolite install.
Gitorious: Gitorious requires ruby, mysql, and a gazillion gems and packages. As @calmh said,
At that point I decided to go with GitHub:
Final thought: It would be great if TurnkeyLinux could one day improve their revision control appliance to include gitorious by default.
我使用的是 github,但随着项目数量的增加,它变得太昂贵了。而且它管理公钥的方式也不是很令人满意。例如,您不能为两个不同的存储库添加两个相同的密钥,您必须将其添加为全局密钥(如果我错了,请纠正我)。
我发现使用带有 gitolite 的 slicehost 切片(或任何你使用的东西)要便宜得多。 Gitolite 安装和管理非常简单明了。如果你需要一个 Web 界面,有一些选项可供选择,但我个人不需要它,并且从未在 github 上使用过此功能。访问控制操作系统非常强大,同时又简单。有多种方法可以在没有主机 root 访问权限的情况下安装它。
而且您也可以使用您的服务器进行托管,而无需支付额外的月费。我写了一篇关于如何在 ubuntu 上设置 gitolite 的教程,这非常简单(与 girroco 相比)。
您可以在这里阅读
I was using github, but it becomes too expensive while number of your projects grows. And the way it manages public keys is not very satisfying. For example you can't add two identical keys for two different repos, you are forced to add is as global key (correct me if i am wrong).
I found that having a slicehost slice (or whatever you use) with gitolite is much cheaper. Gitolite installation and management is very easy and straightforward. And if you need a web interface there are options to choose from, but i personally don't need it, and never used this feature on github. Access control os very powerfull and easy in same time. And there are ways to install it not having a root access to your host.
And you can use your server for hosting too, not paying another monthly fee. I wrote an tutorial on how to setup gitolite on ubuntu which is super easy (in contrast to girroco).
You can read it here
相当古老的线程,但为了完整性,值得一看 BitBucket - 正如一位用户提到的,GitHub 的价格可能会很昂贵很多私人仓库,但 BB 免费提供无限的私人仓库 - 到目前为止,我在 git 访问方面没有遇到任何问题。
华泰
Fairly old thread, but just for completeness, it's worth looking at BitBucket - as one user mentioned, GitHub can get expensive for a lot of private repos, but BB offers unlimited private repos for free - so far, I've not had any issues with git access.
HTH
驱动 http://repo.or.cz 的系统怎么样:Girocco
...或 伟大的
What about the system that drives http://repo.or.cz: Girocco
...or gitorious
考虑使用 GitLab,您可以通过 Web UI 配置访问。 (披露:我是 GitLab.com 的联合创始人)。它是安装最多的 git 管理系统,包括合并请求、行注释、wiki 和问题跟踪器。
Consider using GitLab, you can configure access via the web ui. (disclosure: I'm a co-founder of GitLab.com). It is the most installed git management system and includes merge requests, line comments, a wiki and an issue tracker.
实际上,出于您提到的原因,我只是编写了几个简单的 python 脚本来帮助创建用户和存储库。我怀疑我可以让我的老板让我开源它们——不过,基本上,他们在一个名为 configobj。我对它们进行了设置,以便它们可以作为命令行脚本运行,也可以作为具有小型 Web 界面的 CGI 脚本运行。
I actually just wrote a couple of simple python scripts to help with user and repo creation for just the reason you mention. I suspect I could get my boss to let me open source them -- basically, though, they read and write the config file used by gitosis with the help of a python library called configobj. I set them up so that they can run either as command line scripts or as cgi scripts with a little web interface.
我们研究了多种解决方案,但从管理的角度来看,没有一个能很好地发挥作用。我们最初忽略了 Gerrit,认为它仅用于代码审查,但我认为它值得再看一下。它还执行授权和身份验证以及工作流程组件,因此您可以根据提交或正面评论触发构建。
We have looked a number of solutions and none of them work well from an administrative standpoint. We had initially passed over Gerrit, thinking that it was only for code reviews, but I think it deserves a second look. It also does authorization and authentication, and a workflow component, so you can trigger builds upon commits or positive reviews.
Gitolite 具有很好的功能,例如分支级别访问控制
并有良好的文档。易于设置。最少的依赖性。
对于只读 Web 访问,gitweb 应与 gitolite 一起使用。
Gitorious 太难设置,并且有太多依赖项。
Gitorious需要passenger,如果你使用Apache,它就变成了
如果您有任何其他 Rails 应用程序使用,设置太复杂
红宝石的另一个版本。
有关 Gitolite 功能的概述,请观看 Sitaram 的 Gitolite
Gitolite as nice features like branch level access control
and has good documentation. Easy to setup. Least dependencies.
For readonly web access , gitweb shall be used along with gitolite.
Gitorious is too difficult to setup and has too many dependencies.
Gitorious requires passenger , if you are using Apache, it becomes
too complex setup if you have any other rails application using
another version of ruby.
For an overview of Gitolite features watch Gitolite by Sitaram
scm-manager 不像 gitosis 那样功能齐全,但很容易通过 Web 管理、签入和差异跟踪托管 git、mercurial 和 svn 存储库。
scm-manager isn't as full featured as gitosis, but it is easy to host git, mercurial, and svn repositories with web admin, checkins and diff tracking.