OpenMediaVault GitLab 安装

/****************************************************************************
 *                      OpenMediaVault GitLab 安装
 * 说明:
 *     安装过程中遇到各种各样的问题,尤其是在执行dpkg安装包的时候很久没反省,
 * 后来直接运行,放那里,吃饭去了,回来就好了。
 *
 *                                          2016-8-17 深圳 南山平山村 曾剑锋
 ***************************************************************************/

一、参考文档:
    1. Install a GitLab CE Omnibus package on
        https://about.gitlab.com/downloads/#ubuntu1404
    2. APT/YUM repository for GitLab Community Edition packages
        https://packages.gitlab.com/gitlab/gitlab-ce
    3. change the data directory gitlab to store repos elsewhere
        http://stackoverflow.com/questions/19902417/change-the-data-directory-gitlab-to-store-repos-elsewhere
    4. Could not read from remote repository
        https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide
    5. project ssh path is wrong
        https://github.com/gitlabhq/gitlabhq/issues/3686
    6. GitLab搭建以及配置
        http://www.jianshu.com/p/a22eaa1fcfe7

二、gitlab 安装:
    1. sudo apt-get install curl openssh-server ca-certificates postfix
    2. 按参考文档内网址获取安装包,这里也可以在Windows下载好,再FTP上传上去。
    3. dpkg -i <包名>
    4. sudo gitlab-ctl reconfigure

三、修改Web端口号及ip:
    1. 修改/etc/gitlab/gitlab.rb
        ......
        external_url ‘http://192.168.1.4:8888‘  # 不这样修改,界面上有些内容用起来比较麻烦。
        ......
    2. gitlab-ctrl start
    3. gitlab-ctrl reconfigre       # 在这之前一定要先运行gitlab-ctrl start,否则会出错
    4. gitlab-ctrl top
    5. gitlab-ctrl start

四、修改仓库目录:
    1. rm /var/opt/gitlab/git-data/repositories
    2. ln -s /home/git/repos /var/opt/gitlab/git-data/repositories

五、clone project:
    1. http:
        git clone http://192.168.1.4:8888/<your username>/<your project name>.git
    2. 如果ssh key,当然你要知道git账户密码:
        git clone [email protected]192.168.1.4:git-data/repositories/<your username>/<your project name>.git
    3. 如果已经在Web主页上添加了ssh key:
        git clone [email protected]192.168.1.4:<your username>/<your project name>.git
    
时间: 2024-07-30 01:54:31

OpenMediaVault GitLab 安装的相关文章

GitLab安装说明

http://blog.csdn.net/huangzhijie3918/article/details/51330425 GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. gitlab是基于Ruby on Rails的,安装和配置非常麻烦,不过有傻瓜安装包,https://about.gitlab.com/downloads/,或者,https://bitnami.com/stack/gitl

gitlab 安装及部署

Gitlab 安装部署 GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. 安装步骤 n升级系统并及关闭selinux和iptables n安装Ruby n创建项目运行用户(创建git账号,方便权限管理) nGitLab Shell n数据库(可以支持mysql和PostgreSQL,这里使用mysql) nGitLab(版本:6.3.1) nWeb服务器(可支持nginx和apache,这里使用

bitnami gitlab 安装

/************************************************************************************** * bitnami gitlab 安装 * 说明: * 最近再弄git服务器,但感觉缺少Web界面实在是觉得有点欠缺什么,于是找到gitlab看一下 * 运行效果,目前这种安装方法不太适合服务器安装. * * 2016-8-15 深圳 南山平山村 曾剑锋 **********************************

gitlab安装centos7

安装gitlab前放开http和ssh访问 firewall-cmd --permanent --add-service=http service firewalld restart 增加gitlab包服务器,安装gitlab curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash yum -y install gitlab-ce 编译和启动gitlab gi

gitlab安装教程

gitlab安装教程 安装教程 官网安装方法 https://about.gitlab.com/downloads/#centos7 1.准备 sudo yum install curl policycoreutils openssh-server openssh-clients sudo systemctl enable sshd sudo systemctl start sshd sudo yum install postfix sudo systemctl enable postfix s

Gitlab安装操作说明书

一.Gitlab安装操作步骤 登录官方网站https://about.gitlab.com/downloads/根据你所需要的系统版本,作者使用的是centos6, 检查您的服务器是否符合硬件要求.gitlab包是专为64位系统.32位操作系统,考虑不同的安装方法. 安装和配置必要的依赖关系 # sudo yum install curl openssh-server openssh-clients postfix cronie # sudo service postfix start # su

centos 6.5安装GitLab安装

1.安装操作系统 a.安装wget(系统版本是6.5) #yum -y install wget b.增加EPEL安装源 EPEL,即Extra Packages for Enterprise Linux,这个软件仓库里有很多非常常用的软件,而且是专门针对RHEL设计的,对RHEL标准yum源是一个很好的补充,完全免费使用,由 Fedora项目维护,所以如果你使用的是RHEL,或者CentOS,Scientific等RHEL系的linux,可以非常放心的使用EPEL的 yum源. 下载并安装GP

gitlab安装教程、gitlab官网、英文文档

gitlab官网 https://about.gitlab.com/ gitlab安装和官网英文文档 https://about.gitlab.com/downloads/ 清华大学tuna镜像源 Gitlab Community Edition 镜像使用帮助 https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

gitlab 安装及ldap集成 centos6.x

一.安装gitlab rpm包 及依赖 #curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64.rpm #yum install -y openssh-server postfix  cronie #chkconfig postfix on #rpm -i gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64