首页 > 其他 > 详细

搭建Gitlab

时间:2016-06-26 19:38:08      阅读:140      评论:0      收藏:0      [点我收藏+]

这个周末好奇想搭建一个私有的Gitlab,以前折腾过一次。现在记录如下。

一、安装Ubuntu 16.04 LTS server amd64 到Virtual Box

二、安装gitlab服务器

按照官网的说明(Download GitLab Community Edition (CE))一步步操作即可。注意:使用中国镜像来下载,页面底部有说明。

Gitlab管理命令

    sudo gitlab-ctl restart
    sudo gitlab-ctl reconfigure
    sudo gitlab-ctl-rails console production 控制台,可以改密码设置admin用户等操作

设置一个用户为admin用户

    user = User.find_by(email: ‘admin@local.host‘)
    user.admin = true
    user.save

参考:

a. http://stackoverflow.com/questions/11761396/how-to-setup-admin-user-with-gitlab-with-ldap-authentication

b. http://docs.gitlab.com/ce/security/reset_root_password.html

 

三、设置gitlab page服务(failed)

1. Gitlab Runner:https://gitlab.com/gitlab-org/gitlab-ci-multi-runner

2. Install:Install using official GitLab repositories

 

参考:

a. Gitlab: https://about.gitlab.com/downloads/#ubuntu1604

b. 国内gitlab:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

 

搭建Gitlab

原文:http://www.cnblogs.com/xianzhon/p/5618370.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!