如何搭建企业内部免费git服务器?有什么好的方式没?像gitcafe那种代码托管是用的什么方式实现的?
黄舟2017-04-24 09:14:46
At present, Gitlab is the best choice.
First of all, Github Enterprise Edition is too expensive and beyond the reach of ordinary users.
Trac actually supports GIT, but it does not have some socialization and functions like fork and pull request. Moreover, things like permission management are not perfect. (Douban has developed an internal hosting system based on TracCode)
Building Gitlab is actually not difficult. Follow the official manual and you can get it done quickly.
From the internal practice of our company, it is actually a bit troublesome to find a server to do this, so we put gitlab on the virtual machine and then forward it on the host machine (this will count you You can run Linux without a machine). This makes maintenance easier. If you are too lazy to back up according to the manual, just back up the virtual machine directly. And you don’t have to worry about setting up a bunch of web servers.
If you don’t know how to set up gitlab on a virtual machine, there are actually many ready-made virtual machines you can use. Such as:
- http://bitnami.com/stack/gitlab
- http://www.turnkeylinux.org/gitlab
- gitlab has an official Vagrant VM for developers to use.
So, if you know so much about building web services, the simplest solution is:
Install a VMWare Player, download a Gitlab VMWare image from bitnami, run it, and it’s OK
One disadvantage of the Bitnami virtual machine is that it is troublesome to upgrade (he has made some changes of his own to Gitlab). Gitlab's update speed is to release a new stable version on the 22nd of every month. This rhythm is enviable. So after using bitnami Gitlab for a period of time, I used Vagrant to make an Ubuntu+Gitlab box. This way the upgrade is relatively simple, as long as you follow the manual. This virtual machine has been running stably for some time now.
Github, GitCafe and GitLab are all written using Ruby on Rails. Regarding the code hosting method, you might as well ask GitCafe webmaster @ghostm55.
高洛峰2017-04-24 09:14:46
Reference: Gitolite
I use Gitolite to build my own git server: http://git.maxchan.info/
PHPz2017-04-24 09:14:46
How To Set Up GitLab As Your Very Own Private GitHub Clone: https://www.digitalocean.com/community/articles/how-to-set-up-gitlab-as-your-very-own-private-github- clone
This is an article from DO, introducing how to install GitLab
.
天蓬老师2017-04-24 09:14:46
Let’s start gitlab.. There is also gitlab-ci, supporting automatic continuous integration. After the combination, most of them can be realized
GitLab is now divided into ce and ee. ee mainly optimizes the speed of very large-scale projects and the integration with existing oa, etc.
怪我咯2017-04-24 09:14:46
Here is an article introducing how to build a private (enterprise) Git service under Debian/Ubuntu and Centos through Gitlab.
怪我咯2017-04-24 09:14:46
If you are interested in the specific construction steps: CentOS installation and configuration Git Server with Gitolite