搭建Gitlab

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

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

二、安装gitlab服务器

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

图1 安装gitlab community版本的示意图

 

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/

 

转载于:https://www.cnblogs.com/xianzhon/p/5618370.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值