
9

搭建私有 GitLab 代码托管服务器
source link: http://wwj718.github.io/post/%E6%8A%80%E6%9C%AF/gitlab-install/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

搭建私有 GitLab 代码托管服务器
2015-07-28
最近正使用docker给公司内部搭建 GitLab 代码托管服务器
#Gitlab 按照维基百科的说法
GitLab实现了一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。
它拥有与GitHub类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。
#install docker gitlab
#安装docker(国内)
curl -sSL https://get.daocloud.io/docker | sh
sudo pip install docker-compose
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
#vim docker-compose.yml 可以自己更改参数,所有可选参数在这里:https://github.com/sameersbn/docker-gitlab#available-configuration-parameters
sudo docker-compose up
#之后可以把GITLAB_PORT,用ngrok映射到公网。这样不在同个局域网内也可以访问了
###一些值得注意的参数
- GITLAB_TIMEZONE = “Asia/Shanghai”
- GITLAB_HOST
- GITLAB_PORT
- GITLAB_ROOT_PASSWORD,默认是5iveL!fe
- GITLAB_BACKUP_DIR,默认是
/home/git/data/backups
- GITLAB_BACKUPS,备份周期,可选disable, daily, weekly or monthly
#git学习资料 以下列出一些我个人觉得比较好的学习资料
###入门参考
###权威参考
</div
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK