码迷,mamicode.com
首页 > 其他好文 > 详细

搭建Gitlab

时间:2016-06-26 19:40:17      阅读:169      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!