¸¡Í¼ÉÏÔõôǿÖÆ×°ÖÃgitlab
¸¡Í¼ÊÇÒ»¿îº£ÄÚÊ¢ÐеÄЧÀÍÆ÷ÖÎÀíÃæ°å¹¤¾ß£¬¾ßÓмòÆÓÒ×Óᢹ¦Ð§Ç¿Ê¢µÈÌص㡣gitlabÊÇÒ»¿îÖ¼ÔÚ×ÊÖú¿ª·¢ÕßÖÎÀí´úÂë¡¢¹¹½¨¡¢²âÊԺͰ²ÅŵĿªÔ´ÏîÄ¿ÖÎÀí¹¤¾ß¡£ËüÄܹ»ÈÃÍŶÓÐ×÷¸ü¸ßЧ£¬Í¬Ê±ÌṩÖÊÁ¿°ü¹ÜºÍÐÔÄÜÓÅ»¯µÄ½â¾ö¼Æ»®¡£
¿ÉÊÇ£¬Ðí¶à¸¡Í¼Óû§¿ÉÄÜ»áÓöµ½×°ÖÃGitLabʱÓöµ½µÄÎÊÌ⣬ÀýÈçÒÀÀµ¿â²»¼æÈÝ¡¢×°ÖÃÖÐÖ¹µÈµÈ¡£Õâʱ¾ÍÐèÒª½ÓÄÉһЩǿÖÆ×°ÖõÄÒªÁ죬²Å»ªÈÃGitLabÕý³£ÔËÐС£
ÏÂÃ棬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚ¸¡Í¼Ãæ°åÉÏÇ¿ÖÆ×°ÖÃGitLabµÄÒªÁì¡£
Ò»¡¢¼ì²é¸¡Í¼ÇéÐÎ
ÔÚ×îÏÈ×°ÖÃGitLab֮ǰ£¬ÐèÒª¼ì²éÄãµÄ¸¡Í¼Ãæ°åÊÇ·ñ¾ß±¸×°ÖÃÌõ¼þ£¬°üÀ¨£º
ϵͳÇéÐΣºCentOS 7»ò¸ü¸ß°æ±¾
Èí¼þÇéÐΣºApache»òNginx£¬MySQL»òMariaDB
Çл»ÖÁ»ù±¾ÉèÖÃÒ³Ã棬¼ì²é²Ù×÷ϵͳ°æ±¾ºÍ»ù±¾Èí¼þÇéÐÎÊÇ·ñÖª×ãÒªÇó¡£
¶þ¡¢×°ÖÃÒÀÀµ¿â
×°ÖÃGitLabÐèҪװÖÃһЩÒÀÀµ¿â£¬Èçlibicu-devel¡¢curl-devel¡¢openssl-develµÈ£¬ÏêϸÁбíÈçÏ£º
yum install -y curl policycoreutils openssh-server openssh-clients perl
yum install -y postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce
Èý¡¢½â¾öÒÀÀµ¿â²»¼æÈÝÎÊÌâ
ÓÐʱ£¬ÔÚ¸¡Í¼Ãæ°åÉÏ×°ÖÃGitLabʱ£¬¿ÉÄ᷺ܻÆðÒÀÀµ¿â²»¼æÈݵÄÎÊÌ⣬Èçlibicu56Óëlibicu57²»¼æÈÝ¡£Õâʱ£¬ÐèÒª½ÓÄÉÈçϽâ¾öÒªÁ죺
ÏÂÔØlibicu56.rpm
wget https://archive.fedoraproject.org/pub/fedora/linux/releases/25/Everything/x86_64/os/Packages/l/libicu-56.1-8.fc25.x86_64.rpm
×°ÖÃlibicu56.rpm
rpm -ivh libicu-56.1-8.fc25.x86_64.rpm
ËÄ¡¢ÐÞ¸ÄĬÈ϶˿ںÅ
GitLabĬÈ϶˿ںÅÊÇ80£¬ÐèÒªÐÞ¸ÄΪÆäËû¶Ë¿ÚºÅ£¬²»È»¸¡Í¼Ãæ°åºÍGitLab»á±¬·¢¶Ë¿Ú³åÍ»¡£¿ÉÒÔ½ÓÄÉÈçÏ°취ÐÞ¸ÄĬÈ϶˿ںţº
ÐÞ¸ÄGitLabÉèÖÃÎļþ
vi /etc/gitlab/gitlab.rb
ÔÚÉèÖÃÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺
external_url ‘http://gitlab.example.com:8888’
gitlab_rails[‘gitlab_shell_ssh_port’] = 2224
ÖØÆôGitLab
gitlab-ctl reconfigure
ËÄ¡¢Æô¶¯GitLab
ÔÚÍê³ÉÉÏÊö°ì·¨ºó£¬¿ÉÒÔÆô¶¯GitLab²¢»á¼ûËü¡£
Æô¶¯GitLab
gitlab-ctl start
»á¼ûGitLab
ÔÚä¯ÀÀÆ÷ÖÐÊäÈëhttp://ЧÀÍÆ÷IP:¶Ë¿ÚºÅ£¬¼´¿É»á¼ûGitLab¡£
×ܽá
ÒÔÉϾÍÊÇÔÚ¸¡Í¼Ãæ°åÉÏÇ¿ÖÆ×°ÖÃGitLabµÄÒªÁ죬ËäÈ»×°ÖÃÀú³Ì»áÓöµ½Ò»Ð©ÎÊÌ⣬µ«Í¨¹ý¶ÔÎÊÌâµÄ×ÐϸÆÊÎöÏ¢Õù¾ö£¬×îÖÕ¶¼¿ÉÒÔÀÖ³É×°Öá£Í¬Ê±£¬Ò²½¨Òé¸÷ÈËÔÚʹÓÃGitLabʱ£¬Ïàʶ¸ü¶àµÄGitLabÉèÖá¢ÓÅ»¯ºÍÖÎÀí¼¼ÇÉ£¬ÎªÍŶÓÐ×÷¿ª·¢ÌṩԽ·¢¸ßЧµÄ½â¾ö¼Æ»®¡£
ÒÔÉϾÍÊǸ¡Í¼ÉÏÔõôǿÖÆ×°ÖÃgitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡