欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

搭建Gitlab

发布时间:2023/11/27 53 豆豆
生活随笔 收集整理的这篇文章主要介绍了 搭建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

总结

以上是生活随笔为你收集整理的搭建Gitlab的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。