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

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

二、安装gitlab服务器

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

搭建Gitlab

图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. https://daixiecode.com/2016/setup-gitlab

 

相关文章:

  • 2021-12-02
  • 2021-08-22
  • 2021-07-29
  • 2022-01-16
猜你喜欢
  • 2021-05-23
  • 2021-09-24
  • 2021-12-15
  • 2019-11-08
相关资源
相似解决方案