/****************************************************************************
* OpenMediaVault GitLab 安装
* 说明:
* 安装过程中遇到各种各样的问题,尤其是在执行dpkg安装包的时候很久没反省,
* 后来直接运行,放那里,吃饭去了,回来就好了。
*
* 2016-8-17 深圳 南山平山村 曾剑锋
***************************************************************************/ 一、参考文档:
. Install a GitLab CE Omnibus package on
https://about.gitlab.com/downloads/#ubuntu1404
. APT/YUM repository for GitLab Community Edition packages
https://packages.gitlab.com/gitlab/gitlab-ce
. change the data directory gitlab to store repos elsewhere
http://stackoverflow.com/questions/19902417/change-the-data-directory-gitlab-to-store-repos-elsewhere
. Could not read from remote repository
https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide
. project ssh path is wrong
https://github.com/gitlabhq/gitlabhq/issues/3686
. GitLab搭建以及配置
http://www.jianshu.com/p/a22eaa1fcfe7 二、gitlab 安装:
. sudo apt-get install curl openssh-server ca-certificates postfix
. 按参考文档内网址获取安装包,这里也可以在Windows下载好,再FTP上传上去。
. dpkg -i <包名>
. sudo gitlab-ctl reconfigure 三、修改Web端口号及ip:
. 修改/etc/gitlab/gitlab.rb
......
external_url 'http://192.168.1.4:8888' # 不这样修改,界面上有些内容用起来比较麻烦。
......
. gitlab-ctrl start
. gitlab-ctrl reconfigre # 在这之前一定要先运行gitlab-ctrl start,否则会出错
. gitlab-ctrl top
. gitlab-ctrl start 四、修改仓库目录:
. rm /var/opt/gitlab/git-data/repositories
. ln -s /home/git/repos /var/opt/gitlab/git-data/repositories 五、clone project:
. http:
git clone http://192.168.1.4:8888/<your username>/<your project name>.git
. 如果ssh key,当然你要知道git账户密码:
git clone git@192.168.1.4:git-data/repositories/<your username>/<your project name>.git
. 如果已经在Web主页上添加了ssh key:
git clone git@192.168.1.4:<your username>/<your project name>.git

OpenMediaVault GitLab 安装的更多相关文章

  1. GitLab安装说明

    GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. gitlab是基于Ruby on Rails的, ...

  2. Gitlab安装、汉化及使用

    环境:centos 关闭防火墙和selinux [root@Gitlab ~]# setenforce [root@Gitlab ~]# service iptables stop && ...

  3. git\CentOS6.5中gitlab安装教程

    一.Git 起源: Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目. Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本 ...

  4. Ubuntu gitlab安装文档及邮件通知提醒配置

    1.安装依赖包,运行命令 sudo apt-get install curl openssh-server ca-certificates postfix 2.由于gitlab官方源可能被“墙”,首先 ...

  5. gitlab安装随记

    gitlab安装 配置yum源 sudo vim /etc/yum.repos.d/gitlab-ce.repo 按照网上别人的例子,修改为清华的源 [gitlab-ce] name=Gitlab C ...

  6. CentOS 7 环境下GitLab安装及基本配置

    新实验室要求重新建设GitLab,对于我来讲,是第一次有机会当元老参与实验室的建设.下面分享我自己的实测经验: 1. 安装依赖软件并设置开机启动 yum install curlpolicycoreu ...

  7. GitLab安装及使用

    GitLab是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目. GitLab拥有与Github类似的功能,能够浏览 ...

  8. gitlab之一: gitlab安装配置使用

    参考: gitlab 安装和配置 gitlab下载地址: https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/ 官方教程: https://about.gitl ...

  9. Gitlab安装以及汉化

    Gitlab安装以及汉化 系统环境: CentOS 7.5 IP:192.168.1.2 关闭selinux.firewalld gitlab-ce-10.8.4 rpm包:下载地址 一.下载并安装g ...

随机推荐

  1. hdu5412CRB and Queries

    动态修改求区间K大. 整体二分是一个神奇的东西: http://www.cnblogs.com/zig-zag/archive/2013/04/18/3027707.html 入门: 一般的主席树都挂 ...

  2. FFT/NTT模板 既 HDU1402 A * B Problem Plus

    @(学习笔记)[FFT, NTT] Problem Description Calculate A * B. Input Each line will contain two integers A a ...

  3. 7.Java web—tomcat9部署

    1)安装 在此之前要安装 好jdk和jre 下载绿色版 http://tomcat.apache.org/ 解压至:D:\Program Files (x86)\tomcat9 环境变更path添加两 ...

  4. sql 添加自定义排序

    Mysql : SELECT (@i:=@i+1) AS ind ,字段 FROM 表名 别名, (SELECT @i:=0) t WHERE `IsDeleted` = 0; Oracle: 本就有 ...

  5. docker nginx镜像+phpfpm 镜像 组合配置 搭建 PHP+nginx 环境

    前言 在以往的容器环境部署中 运行环境 我们通常把 类似 apache nginx php 等 打包在一个镜像中 起一个容器. 这样做的好处是 方便 简单. 不便的地方是 如果PHP 需要扩展新的 相 ...

  6. PAT 1094. The Largest Generation(BFS)

    CODE: #include<cstdio> #include<cstring> #include<queue> using namespace std; bool ...

  7. CF 568A(Primes or Palindromes?-暴力推断)

    A. Primes or Palindromes? time limit per test 3 seconds memory limit per test 256 megabytes input st ...

  8. javascript Array method总结

    0.创建 Javascript创建数组的基本方式有两种.第一种是使用Array构造函数. var colors = new Array(); var colors = new Array(20); v ...

  9. Python - scrapy安装中libxml2问题

    先到 http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 下载下面三个库的 whl,然后用pip install 来安装即可 pycurl,lxml,lib ...

  10. Python - colour-science库

    http://nbviewer.jupyter.org/github/colour-science/colour-ipython/blob/master/notebooks/colour.ipynb# ...