GitLab5.4ãCentOS6.4ã«ã¤ã³ã¹ãã¼ã«ãããï¼ï¼ï¼
ãã¦ãå ¨ç¶ããã°ã©ãã³ã°ã¯ãã¦ããªãããã ããã½ã¼ã¹ç®¡çã«ã¤ãã¦èãã¦ã¿ãã
ä¼ç¤¾ãããMSç³»ã¯VisualSourceSafe(以å¾VSS)ãä¸å¿ãªãã ãã©ãWEBã¢ããªãç¹ã«JavaãVSSã§ç®¡çãã¦ããçµ±ä¸æã¯åãã¦ãããããããéçºæã®å©ä¾¿æ§ãããªãæãªããã¦ããæãã
ã§ãããæ°å¹´ã¯WEBé¢ä¿ã§ã¯Eclipseã使ãããã«ãã¦ã½ã¼ã¹ã³ã¼ããSubversionã§ç®¡çããããã«ãã¦ãEclipseä¸ã§ã½ã¼ã¹ã®åå¾ãã³ãããããããã«ãªã£ã¦ï½¥ï½¥ï½¥ã£ã¦ãããä¸éããæ®éãªã¯ããªã®ã«çµæ§ä»ã¾ã§æ®éãããªãã£ãã
ã§ããããããä¼ç¤¾ã§ãSubversionã浸éãã¦ããããã ãã©ï½¥ï½¥ï½¥
ä»ãgitã ããï¼
ã½ã¼ã·ã£ã«ã³ã¼ãã£ã³ã°ã£ã¦æãã§githubï¼ããã¤ãæµè¡ã£ã¦ãããï¼
ãããªã®ã«Subversionã§ããã®ï¼ãããããããããï¼ã£ã¦è©±ãããã・・・
俺ãã¡ã¯æ°ãããã¨ãç¥ã£ã¦ãã¾ã£ãã試ããã«ã¯ããããªãï¼ãããªäººç¨®ãªãã ï¼ããããã§ããããï¼
ã¤ãããã§ãgitã ãªãgitã§è¡ããã ãªãgitãã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¶ã£ããªãã ãªï¼
ã¤ãããã§ãGitLabãã¤ã³ã¹ãã¼ã«ããããããããªããã©ã[lab|love]ã ãã
GitLabã¨ã¯ï¼
ãã¦ãããããGitLabã£ã¦ãªããªã®ãï¼ã£ã¦ãã¨ã ããã¤ã¾ãã¨ããã½ã¼ã¹ç®¡çã®ã¨ã³ã¸ã³ã¨ãªãgitã®ããã³ãã¨ã³ãã£ã¦æãã§ããããï¼
è²ã ãªãµã¤ãã調ã¹ã¦ã¿ãã¨ãGitHubã®ãããªãµã¼ãã¹ãã¯ãã¼ãºããªç°å¢ã«æ§ç¯ã§ããããã«ããããã®ã¿ããã
ãããRuby on Railsã§å®è£
ããã¦ã¾ããã£ã¦ï½¥ï½¥ï½¥Redmineåæ§ã¤ã³ã¹ãã¼ã«ã«æéãæããã®ã§ãããããä»æ¹ãªãã§ãããã©ã[lab|love]ã§ãããã
ã¤ã³ã¹ãã¼ã«åã®æºå
Redmineãã¤ã³ã¹ãã¼ã«ãããããã§epelãªãã¸ããªè¿½å ãããRubyã¤ã³ã¹ãã¼ã«ãããã£ã¦ã®ã¯ããä¸è¦ãªãã ãã©Redisã£ã¦ãã¤ãã¤ã³ã¹ãã¼ã«ããªãããããªãã£ã½ãã
Redisã¨ããã®ã¯ãã¼ã¿æ§é ãµã¼ãã¼ã¨ãå¼ã°ããã¤ã³ã¡ã¢ãªãã¼ã¿ãã¼ã¹ã®ï¼ã¤ãããã
・・・ã¾ã£ããåããããmemcachedã¿ãããªããï¼ï½¥ï½¥ï½¥ã¾ãmemcachedããããã¾åããããï½ï½ï½
ã¨ããããã¤ã³ã¹ãã¼ã«ãã¦ã¿ããããã¦èªåèµ·åãè¨å®ãããã¦ãµã¼ãã¹èµ·åã
# yum install redis
# chkconfig redis on
# service redis start
GitLabç¨ã®ã¦ã¼ã¶ã¼ãä½æãã¦ããå¿
è¦ããããããã®ã§ã以ä¸ã§ä½æã
# useradd git
GitLabä¸ã§ç»é²ãããã¦ã¼ã¶ã¼ã¯ãã¹ã¦ä¸è¨ã§ä½æããgitã¦ã¼ã¶ã¼ã®sshãã¼ã§ç®¡çãããã£ã½ãã
ãªã®ã§ãäºãä½æãã¦ããå¿
è¦ãããã
# su - git
$ cd /home/git/
$ mkdir .ssh
$ touch .ssh/authorized_keys
$ chmod 600 .ssh/authorized_keys
$ chmod 700 .ssh
gitã®ã»ããè¨å®ãã¦ããã
$ git config --global user.name "GitLab"
$ git config --global user.email "gitlab@localhost"
GitLab shellã®ã¤ã³ã¹ãã¼ã«
ã§ãGitLab shellãã¤ã³ã¹ãã¼ã«ãããããã£ã¦Gitoliteã®ä»£ããã«åºã¦ãããã¤ã§ããï¼
ã¡ãªã¿ã«ãã§ãã¯ã¢ã¦ãã®ãã¼ã¸ã§ã³çªå·ã¯Githubã®gitlab-shellã§ç¢ºèªã
$ git clone https://github.com/gitlabhq/gitlab-shell.git
$ cd gitlab-shell/
$ git checkout v1.7.0
$ git checkout -b v1.7.0
$ cp config.yml.example config.yml
$ vi config.yml
$ ./bin/install
$ exit
#
MySQLã®è¨å®
MySQLã¯ã¤ã³ã¹ãã¼ã«åºæ¥ã¦ãããã ãã©ãmy.cnfã«bind-addressã¯è¨å®ãã¦ããå¿ è¦ãããã£ã½ãã
# vi /etc/my.cnf
[mysqld] bind-address = 127.0.0.1
# service mysqld restart
ããã§ãã£ã¦DBãä½æã
# mysql -u root -p
> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY 'gitlab';
> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';
> \q
・・・ä»æ¥ã¯ããã¾ã§ã
ãããããªãã調ã¹ãªããå®è¡ãã¦ãããGitLabã®ã¤ã³ã¹ãã¼ã«ã¾ã§ãã£ã¦ãã¼ãï½ï½ï½
äºæ³éãã ãããã¯ããããããã©ãã£ã¦è¾ãããã