継続的な統合&(Gitlab導入)


 、Gitlab  
GitLab      Ruby on Rails          ,        Git    ,   Web               。 
GitLab   Github     ,       ,       。            ,                       ,
                        ,              。

 、     
1、    
    :CentOS release 6.8 (Final)
Gitlab    :gitlab-ce-9.3.0-ce.0.el6.x86_64.rpm 
IP:172.16.8.11

2、     SELinux
      :
http://blog.csdn.net/xiegh2014/article/details/53031781

3、  yum   
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install curl policycoreutils openssh-server openssh-clients postfix -y
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install -y gitlab-ce
yum install -y git

      yum ,     
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

4、     gitlab  
gitlab-ctl reconfigure
     .................................

5、gitlab    
gitlab-ctl start
gitlab-ctl restart
gitlab-ctl stop

            (    80  )
gitlab-ctl status
run: gitaly: (pid 3709) 168s; run: log: (pid 3553) 217s
run: gitlab-monitor: (pid 3756) 164s; run: log: (pid 3678) 185s
run: gitlab-workhorse: (pid 3721) 166s; run: log: (pid 3566) 215s
run: logrotate: (pid 3595) 202s; run: log: (pid 3594) 202s
run: nginx: (pid 3580) 209s; run: log: (pid 3579) 209s
run: node-exporter: (pid 3641) 195s; run: log: (pid 3640) 195s
run: postgres-exporter: (pid 3745) 164s; run: log: (pid 3664) 187s
run: postgresql: (pid 3392) 287s; run: log: (pid 3391) 287s
run: prometheus: (pid 3733) 165s; run: log: (pid 3630) 196s
run: redis: (pid 3335) 299s; run: log: (pid 3334) 299s
run: redis-exporter: (pid 3653) 193s; run: log: (pid 3652) 193s
run: sidekiq: (pid 3543) 223s; run: log: (pid 3542) 223s
run: unicorn: (pid 3512) 225s; run: log: (pid 3511) 225s

gitlab-ctl restart
ok: run: gitaly: (pid 4489) 0s
ok: run: gitlab-monitor: (pid 4496) 0s
ok: run: gitlab-workhorse: (pid 4499) 0s
ok: run: logrotate: (pid 4509) 1s
ok: run: nginx: (pid 4516) 0s
ok: run: node-exporter: (pid 4522) 1s
ok: run: postgres-exporter: (pid 4528) 0s
ok: run: postgresql: (pid 4538) 0s
ok: run: prometheus: (pid 4546) 0s
ok: run: redis: (pid 4555) 1s
ok: run: redis-exporter: (pid 4564) 0s
ok: run: sidekiq: (pid 4573) 1s
ok: run: unicorn: (pid 4578) 0s

6、  URL
    (    8 )gitlabgitlab
     :root

本文はhttp://blog.csdn.net/xiegh2014/article/details/73733008