基于清华大学源安装gitlab-ce
1.添加repo文件
cat> /etc/yum.repos.d/gitlab-ce.repo<< EOF
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
gpgcheck=0
enabled=1
EOF
2.安装依赖
yum install curl policycoreutils-python openssh-server
3.安装gitlab-ce
yum install gitlab-ce
4.修改访问地址
vim /etc/gitlab/gitlab.rb
// 配置自己的 域名
external_url 'http://10.10.10.7'
5.重新加载配置
gitlab-ctl reconfigure
6.启动
gitlab-ctl start