{"id":130,"date":"2014-01-18T17:16:29","date_gmt":"2014-01-18T08:16:29","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=130"},"modified":"2014-12-12T14:55:44","modified_gmt":"2014-12-12T05:55:44","slug":"centos-6-5%e3%81%abgithub%e3%82%af%e3%83%ad%e3%83%bc%e3%83%b3%e3%81%a7%e3%81%82%e3%82%8bgitlab6-4-3%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=130","title":{"rendered":"CentOS 6.5\u306bGitHub\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308bGitLab(6.4.3)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>Git\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u5171\u6709\u3057\u305f\u3044\u3051\u308c\u3069\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3082\u308d\u3082\u308d\u306e\u95a2\u4fc2\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u7f6e\u304f\u306e\u304c\u305f\u3081\u3089\u308f\u308c\u308b\u5834\u5408\u306a\u3069\u3001GitHub\u30e9\u30a4\u30af\u306aweb\u7ba1\u7406\u6a5f\u80fd\u306e\u3042\u308bGitlab\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ed6\u306b\u3082GitHub\u3092\u30af\u30ed\u30fc\u30f3\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u304c\u4e00\u756a\u30e1\u30b8\u30e3\u30fc\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306fCentos6\u306bGitlab 6.4.3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u8ffd\u8a18<\/h3>\n<p>\u591a\u304f\u306e\u30a2\u30af\u30bb\u30b9\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002CentOS\u306b\u52a0\u3048\u3001Debian\u7cfbOS\u3067\u306eGitLab\u306e\u5c0e\u5165\u65b9\u6cd5\u3082\u5225\u8a18\u4e8b\u306b\u3066\u8ffd\u52a0\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/?p=545\">debian\/ubuntu\/LMDE \u306b GitLab 6.6.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001nginx\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3067\u516c\u958b\u3059\u308b<\/a><\/p>\n<h3>\u8ffd\u8a182(CentOS7)<\/h3>\n<p>CentOS7\u3000\u3067 GitLab\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002CentOS7\u3067GitLab\u3092\u3068\u304a\u8003\u3048\u306e\u65b9\u306f\u3001<a href=\"http:\/\/lovelinux.mydns.jp\/?p=1135\">\u3053\u3061\u3089\u3078<\/a>\u3069\u3046\u305e\u3002<\/p>\n<h3>\u4eee\u5b9a<\/h3>\n<p>\u3054\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u3092 myhost.jp \u3068\u4eee\u5b9a\u3057\u3001GitLab\u3092 gitlab.myhost.jp \uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3067\u904b\u7528\u3059\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<h3>Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<p>Gitlab\u81ea\u4f53\u304cRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306a\u306e\u3067\u3001Ruby\u306e\u74b0\u5883\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u95a2\u3057\u3066\u306f\u3001\u3042\u3061\u3053\u3061\u306b\u512a\u79c0\u306a\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u5fc5\u8981\u306aRPM\u30d1\u30c3\u30b1\u30fc\u30b8\u3092Fedora\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3088\u308a\u53d6\u5f97<\/h3>\n<p>[bash]<br \/>\n# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/libunwind-1.1-2.el6.x86_64.rpm<br \/>\n# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/libunwind-devel-1.1-2.el6.x86_64.rpm<br \/>\n# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/gperftools-libs-2.0-11.el6.3.x86_64.rpm<br \/>\n# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/redis-2.4.10-1.el6.x86_64.rpm<br \/>\n[\/bash]<\/p>\n<h3>RPM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\n# rpm -ivh libunwind-1.1-2.el6.x86_64.rpm<br \/>\n# rpm -ivh libunwind-devel-1.1-2.el6.x86_64.rpm<br \/>\n# rpm -ivh gperftools-libs-2.0-11.el6.3.x86_64.rpm<br \/>\n# rpm -ivh redis-2.4.10-1.el6.x86_64.rpm<br \/>\n[\/bash]<\/p>\n<h3>\u8db3\u308a\u306a\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\n# yum install icu4c libicu-devel libxml2 libxml2-devel libxslt libxslt-devel<br \/>\n[\/bash]<\/p>\n<h3>REDIS\u8d77\u52d5\u3001\u8d77\u52d5\u8a2d\u5b9a<\/h3>\n<p>[bash]<br \/>\n# service redis start<br \/>\n# chkconfig &#8211;level 35 redis on<br \/>\n[\/bash]<\/p>\n<h3>gitlab \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306b git \u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0<\/h3>\n<p>[bash]<br \/>\n# useradd git<br \/>\n# su &#8211; git<br \/>\n[\/bash]<\/p>\n<h3>Gitlab-shell\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\n$ git config &#8211;global user.name &#8220;GitLab&#8221;<br \/>\n$ git config &#8211;global user.email &#8220;gitlab@localhost&#8221;<br \/>\n$ git clone https:\/\/github.com\/gitlabhq\/gitlab-shell.git<br \/>\n$ cd gitlab-shell\/<br \/>\n$ git checkout -b 1.8.0 v1.8.0<br \/>\n$ cp config.yml.example config.yml<br \/>\n$ nano config.yml<br \/>\n[\/bash]<\/p>\n<p>\u4ee5\u4e0b\u306eURL\u6307\u5b9a\u306e\u90e8\u5206\u3092\u8abf\u6574\uff08gitlab\u3092\u30db\u30b9\u30c8\u3059\u308bURL\u3092\u8a18\u8ff0\uff09<\/p>\n<p>[diff]<br \/>\n&#8211; gitlab_url: &#8220;http:\/\/localhost\/&#8221;\u3000\u2190\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<br \/>\n+ gitlab_url: &#8220;http:\/\/gitlab.myhost.jp\/&#8221;<br \/>\n[\/diff]<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b9f\u884c<br \/>\n[bash]<br \/>\n$ .\/bin\/install <\/p>\n<p>[\/bash]<\/p>\n<h3>gitlab\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<\/p>\n<p>$ cd ..<br \/>\n$ git clone https:\/\/github.com\/gitlabhq\/gitlabhq.git gitlab<br \/>\n$ cd gitlab<br \/>\n$ git checkout -b 6.4.3 v6.4.3<br \/>\n$ cp config\/gitlab.yml.example config\/gitlab.yml<br \/>\n$ nano config\/gitlab.yml<br \/>\n[\/bash]<\/p>\n<p>\u30db\u30b9\u30c8\u540d\u8a2d\u5b9a\uff08gitlab\u3092\u30db\u30b9\u30c8\u3059\u308bURL\u3092\u8a18\u8ff0\uff09<br \/>\n[diff]<br \/>\n&#8211;   host: localhost<br \/>\n+   host: gitlab.myhost.jp<br \/>\n[\/diff]<\/p>\n<p>Production\u30e2\u30fc\u30c9\u3067\u306e\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a<br \/>\n[bash]<br \/>\n$ cp config\/database.yml.mysql config\/database.yml<br \/>\n$ nano config\/database.yml<br \/>\n[\/bash]<\/p>\n<p>[diff]<br \/>\n\t#<br \/>\n\t# PRODUCTION<br \/>\n\t#<br \/>\n\tproduction:<br \/>\n\t  adapter: mysql2<br \/>\n\t  encoding: utf8<br \/>\n\t  reconnect: false<br \/>\n\t  database: gitlabhq_production<br \/>\n\t  pool: 10<br \/>\n&#8211;\t  username: git<br \/>\n&#8211;\t  password: &#8220;secure password&#8221;<br \/>\n+\t  username: root<br \/>\n+\t  password: &#8220;xxxxxxxxx&#8221;<br \/>\n\t  # host: localhost<br \/>\n\t  # socket: \/tmp\/mysql.sock<br \/>\n[\/diff]<\/p>\n<h3>\u30d0\u30f3\u30c9\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u304b\u306a\u308a\u9577\u3044\u6642\u9593\u3092\u8981\u3057\u307e\u3059\uff09<\/h3>\n<p>[bash]<br \/>\n$ bundle install &#8211;deployment &#8211;without development test postgres<br \/>\n[\/bash]<\/p>\n<h3>\u4e0d\u8db3\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n$ mkdir \/home\/git\/gitlab\/tmp\/pids<br \/>\n$ mkdir \/home\/git\/gitlab\/public\/uploads<br \/>\n[\/bash]<\/p>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n$ bundle exec rake db:create RAILS_ENV=production<br \/>\n$ bundle exec rake gitlab:setup RAILS_ENV=production<br \/>\n$ exit<br \/>\n[\/bash]<\/p>\n<h3>\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210\u3001\u8a2d\u5b9a<\/h3>\n<p>[bash]<br \/>\n# wget https:\/\/github.com\/gitlabhq\/gitlab-recipes\/raw\/master\/init\/sysvinit\/centos\/gitlab-only-sidekiq<\/p>\n<p># cp gitlab-only-sidekiq \/etc\/init.d\/gitlab<br \/>\n# chmod 744 \/etc\/init.d\/gitlab<br \/>\n# chkconfig &#8211;add gitlab<br \/>\n# chkconfig &#8211;level 35 gitlab on<br \/>\n# service gitlab start<br \/>\n[\/bash]<\/p>\n<h3>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/h3>\n<p>[bash]<br \/>\n# nano \/etc\/httpd\/conf.d\/virtual.conf<br \/>\n[\/bash]<\/p>\n<p>\u8a2d\u5b9a\u5185\u5bb9<br \/>\n[bash]<\/p>\n<p>NameVirtualHost *:80<\/p>\n<p># GITLAB<br \/>\n<VirtualHost *:80><br \/>\n    DocumentRoot \/var\/www\/gitlab\/public<br \/>\n    ServerName gitlab.myhost.jp<br \/>\n    <Directory \/var\/www\/gitlab\/public><br \/>\n         AllowOverride all<br \/>\n         Options +FollowSymLinks -MultiViews<br \/>\n    <\/Directory><br \/>\n    ErrorLog logs\/gitlab-error_log<br \/>\n    CustomLog logs\/gitlab-access_log common<br \/>\n    RailsEnv production<br \/>\n    PassengerEnabled on<br \/>\n<\/VirtualHost><\/p>\n<p>[\/bash]<\/p>\n<p>gitlab\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u4f5c\u6210<\/p>\n<p>[bash]<br \/>\n# ln -s \/home\/git\/gitlab \/var\/www\/gitlab<br \/>\n# chmod +x \/home\/git<br \/>\n# service httpd restart<br \/>\n[\/bash]<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u30d6\u30e9\u30a6\u30b6\u30fc\u3067Gitlab\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u304b\u306a\u308a\u9577\u6642\u9593\u5f85\u305f\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u6c17\u9577\u306b\u5f85\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>http:\/\/gitlab.myhost.jp<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-GitLab-Chromium.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-GitLab-Chromium.png\" alt=\"Screenshot-GitLab - Chromium\" width=\"650\" class=\"alignnone size-medium wp-image-141\" \/><\/a><\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210\u6642\u306b\u30e1\u30e2\u3063\u3066\u304a\u3044\u305fID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u308b<\/p>\n<p>login&#8230;&#8230;&#8230;admin@local.host<br \/>\npassword&#8230;&#8230;5iveL!fe<\/p>\n<h3>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff08\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\uff09\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u3053\u304b\u3089\u306fGUI\u306a\u306e\u3067\u3001\u64cd\u4f5c\u306f\u7c21\u5358\u3067\u3059\u3002<br \/>\n\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Dashboard-GitLab-Chromium.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Dashboard-GitLab-Chromium.png\" alt=\"Screenshot-Dashboard | GitLab - Chromium\" width=\"650\" class=\"alignnone size-medium wp-image-140\" \/><\/a><\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-New-Project-GitLab-Chromium.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-New-Project-GitLab-Chromium.png\" alt=\"Screenshot-New Project | GitLab - Chromium\" width=\"650\" class=\"alignnone size-medium wp-image-142\" \/><\/a><\/p>\n<p>\u5b9f\u969b\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/p>\n<p>[bash]<br \/>\n# ls \/home\/git\/repositories\/root\/<br \/>\nabc.git  abc.wiki.git<br \/>\n[\/bash]<\/p>\n<p>\u3082\u3057\u6b63\u3057\u304f\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4f55\u3089\u304b\u306e\u4e0d\u5177\u5408\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u306e\u3067\u3001Gitlab\u3092\u518d\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002\uff08\u518d\u8d77\u52d5\u5f8c\u3001\u518d\u5ea6\u30d6\u30e9\u30a6\u30b6\u30fc\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3092\u884c\u3044\u3001\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>[bash]<br \/>\n# service gitlab restart<br \/>\n[\/bash]<\/p>\n<h3>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u306bPush\u3057\u3066\u307f\u308b<\/h3>\n<p>\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u3067Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3002\u65b0\u898f\u306bREADME\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001Gitlab\u306bPush\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ mkdir abc<br \/>\n$ cd abc<br \/>\n$ git init<br \/>\nInitialized empty Git repository in \/home\/hiro\/workspace\/abc\/.git\/<\/p>\n<p>$ git config user.name &#8220;myname&#8221;<br \/>\n$ git config user.email &#8220;myname@myhost.jp&#8221;<br \/>\n$ git remote add origin http:\/\/root@gitlab.myhost.jp\/root\/abc.git<\/p>\n<p>$ echo &#8220;HELLO GITLAB&#8221; >>README<br \/>\n$ git add README<br \/>\n$ git commit -m &#8220;first commit&#8221;<br \/>\n$ git push -u origin master<\/p>\n<p>[\/bash]<\/p>\n<h3>\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u30b3\u30df\u30c3\u30c8\u5185\u5bb9\u78ba\u8a8d<\/h3>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Commits-at-master-Administrator-abc-GitLab-Chromium.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Commits-at-master-Administrator-abc-GitLab-Chromium.png\" alt=\"Screenshot-Commits at master - Administrator - abc | GitLab - Chromium\" width=\"650\" class=\"alignnone size-medium wp-image-139\" \/><\/a><\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Administrator-abc-GitLab-Chromium.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/Screenshot-Administrator-abc-GitLab-Chromium.png\" alt=\"Screenshot-Administrator - abc | GitLab - Chromium\" width=\"650\"  class=\"alignnone size-medium wp-image-138\" \/><\/a><\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002<br \/>\n\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Git\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u5171\u6709\u3057\u305f\u3044\u3051\u308c\u3069\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3082\u308d\u3082\u308d\u306e\u95a2\u4fc2\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u7f6e\u304f\u306e\u304c\u305f\u3081\u3089\u308f\u308c\u308b\u5834\u5408\u306a\u3069\u3001GitHub\u30e9\u30a4\u30af\u306aweb\u7ba1\u7406\u6a5f\u80fd\u306e\u3042\u308bGitlab\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ed6\u306b\u3082GitHub\u3092\u30af\u30ed\u30fc\u30f3\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u304c\u4e00\u756a\u30e1\u30b8\u30e3\u30fc\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306fCentos6\u306bGitlab 6.4.3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u8ffd\u8a18 \u591a\u304f\u306e\u30a2\u30af\u30bb\u30b9\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002CentOS\u306b\u52a0\u3048\u3001Debian\u7cfbOS\u3067\u306eGitLab\u306e\u5c0e\u5165\u65b9\u6cd5\u3082\u5225\u8a18\u4e8b\u306b\u3066\u8ffd\u52a0\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 debian\/ubuntu\/LMDE \u306b GitLab 6.6.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001nginx\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3067\u516c\u958b\u3059\u308b \u8ffd\u8a182(CentOS7) CentOS7\u3000\u3067 GitLab\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002CentOS7\u3067GitLab\u3092\u3068\u304a\u8003\u3048\u306e\u65b9\u306f\u3001\u3053\u3061\u3089\u3078\u3069\u3046\u305e\u3002 \u4eee\u5b9a \u3054\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u3092 myhost.jp \u3068\u4eee\u5b9a\u3057\u3001GitLab\u3092 gitlab.myhost.jp \uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3067\u904b\u7528\u3059\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002 Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b Gitlab\u81ea\u4f53\u304cRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306a\u306e\u3067\u3001Ruby\u306e\u74b0\u5883\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u95a2\u3057\u3066\u306f\u3001\u3042\u3061\u3053\u3061\u306b\u512a\u79c0\u306a\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 \u5fc5\u8981\u306aRPM\u30d1\u30c3\u30b1\u30fc\u30b8\u3092Fedora\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3088\u308a\u53d6\u5f97 [bash] # wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/libunwind-1.1-2.el6.x86_64.rpm # wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/libunwind-devel-1.1-2.el6.x86_64.rpm # wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/gperftools-libs-2.0-11.el6.3.x86_64.rpm # wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/redis-2.4.10-1.el6.x86_64.rpm [\/bash] RPM\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] # rpm -ivh libunwind-1.1-2.el6.x86_64.rpm # rpm -ivh libunwind-devel-1.1-2.el6.x86_64.rpm # rpm -ivh gperftools-libs-2.0-11.el6.3.x86_64.rpm # rpm -ivh redis-2.4.10-1.el6.x86_64.rpm [\/bash] \u8db3\u308a\u306a\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] # yum install icu4c libicu-devel libxml2 libxml2-devel libxslt libxslt-devel [\/bash] REDIS\u8d77\u52d5\u3001\u8d77\u52d5\u8a2d\u5b9a [bash] # service redis start # chkconfig &#8211;level 35 redis on [\/bash] gitlab \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306b git \u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0 [bash] # useradd git # su &#8211; git [\/bash] Gitlab-shell\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] $ git config &#8211;global user.name &#8220;GitLab&#8221; $ git config &#8211;global user.email &#8220;gitlab@localhost&#8221; $ git clone https:\/\/github.com\/gitlabhq\/gitlab-shell.git $ cd gitlab-shell\/ $ git checkout -b 1.8.0 v1.8.0 $ cp config.yml.example config.yml $ nano config.yml [\/bash] \u4ee5\u4e0b\u306eURL\u6307\u5b9a\u306e\u90e8\u5206\u3092\u8abf\u6574\uff08gitlab\u3092\u30db\u30b9\u30c8\u3059\u308bURL\u3092\u8a18\u8ff0\uff09 [diff] &#8211; gitlab_url: &#8220;http:\/\/localhost\/&#8221;\u3000\u2190\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8 + gitlab_url: &#8220;http:\/\/gitlab.myhost.jp\/&#8221; [\/diff] \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b9f\u884c [bash] $ .\/bin\/install [\/bash] gitlab\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] $ cd .. $ git clone https:\/\/github.com\/gitlabhq\/gitlabhq.git gitlab $ cd gitlab $ git checkout -b 6.4.3 v6.4.3 $ cp config\/gitlab.yml.example config\/gitlab.yml $ nano config\/gitlab.yml [\/bash] \u30db\u30b9\u30c8\u540d\u8a2d\u5b9a\uff08gitlab\u3092\u30db\u30b9\u30c8\u3059\u308bURL\u3092\u8a18\u8ff0\uff09 [diff] &#8211; host: localhost + host: gitlab.myhost.jp [\/diff] Production\u30e2\u30fc\u30c9\u3067\u306e\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a [bash] $ cp config\/database.yml.mysql config\/database.yml $ nano config\/database.yml [\/bash] [diff] # # PRODUCTION # production: adapter: mysql2 encoding: utf8 reconnect: false database: gitlabhq_production pool: 10 &#8211; username: git &#8211; password: &#8220;secure password&#8221; + username: root + password: &#8220;xxxxxxxxx&#8221; # host: localhost # socket: \/tmp\/mysql.sock [\/diff] \u30d0\u30f3\u30c9\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u304b\u306a\u308a\u9577\u3044\u6642\u9593\u3092\u8981\u3057\u307e\u3059\uff09 [bash] $ bundle install &#8211;deployment &#8211;without development test postgres [\/bash] \u4e0d\u8db3\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210 [bash] $ mkdir \/home\/git\/gitlab\/tmp\/pids $ mkdir \/home\/git\/gitlab\/public\/uploads [\/bash] \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210 [bash] $ bundle exec rake db:create RAILS_ENV=production $ bundle exec rake gitlab:setup RAILS_ENV=production $ exit [\/bash] \u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210\u3001\u8a2d\u5b9a [bash] # wget https:\/\/github.com\/gitlabhq\/gitlab-recipes\/raw\/master\/init\/sysvinit\/centos\/gitlab-only-sidekiq # cp gitlab-only-sidekiq \/etc\/init.d\/gitlab # chmod 744 \/etc\/init.d\/gitlab # chkconfig &#8211;add gitlab # chkconfig &#8211;level 35 gitlab on # service gitlab start [\/bash] \u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a [bash] # nano \/etc\/httpd\/conf.d\/virtual.conf [\/bash] \u8a2d\u5b9a\u5185\u5bb9 [bash] NameVirtualHost *:80 # GITLAB&#8230;<\/p>\n","protected":false},"author":1,"featured_media":399,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[25,12],"class_list":{"0":"post-130","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-4","8":"tag-centos","9":"tag-gitlab"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":27,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":1141,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/1141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/399"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}