ÔõÑù½« Gitlab ´î½¨ÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ
gitlab ÊÇÒ»¸ö»ùÓÚ git µÄ´úÂë°æ±¾ÖÎÀíϵͳºÍÔ´´úÂëÍйÜЧÀÍ¡£ËüÊÇÒ»¸ö¿ªÔ´Èí¼þ£¬ÔÊÐí¿ª·¢ÍŶÓÔÚÇå¾²µÄÄÚ²¿ÍøÂçÉϾÙÐÐÐ×÷£¬Í¬Ê±¼á³Ö¶ÔÏîÄ¿ÀúÊ·¼Í¼ºÍ°æ±¾¿ØÖƵÄÍêÈ«¿ØÖÆ¡£Ê¹Óà gitlab ¹¹½¨×Ô¼ºµÄ°æ±¾¿ØÖÆϵͳ£¬¿ÉÒÔÈÃÍŶÓÔÚïÔÌʱ¼ä¡¢ÔöǿЧÂÊ·½Ãæ»ñµÃºÜ´óÌáÉý¡£±¾ÎĽ«ÏÈÈÝÔõÑù½« gitlab ´î½¨ÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ¡£
×°ÖÃÒÀÀµÏî
ÔÚ×îÏÈ×°Öà GitLab ֮ǰ£¬ÇëÈ·±£Ð§ÀÍÆ÷ÉÏ×°ÖÃÁËËùÐèµÄÒÀÀµÏî¡£ÒÔÏÂÊÇ×°Öà GitLab µÄ±ØÐèÒÀÀµÏ
Openssl 1.0.2 »òÕ߸ü¸ß°æ±¾
Ruby 2.4 »òÕ߸ü¸ß°æ±¾
Git 2.10.0 »òÕ߸ü¸ß°æ±¾
Bzip2 1.0.6 »òÕ߸ü¸ß°æ±¾
PostgreSQL 9.6 »òÕ߸ü¸ß°æ±¾
Node.js 10.13.0 »òÕ߸ü¸ß°æ±¾
ImageMagick 6.5.7 »òÕ߸ü¸ß°æ±¾
Redis 5.x »òÕ߸ü¸ß°æ±¾
È·±£ÄúµÄЧÀÍÆ÷ÉÏ×°ÖÃÁËÒÔÉÏËùÓÐÒÀÀµÏî¡£ÈôÊÇÄúûÓÐ×°ÖÃÕâЩÒÀÀµÏÔòÐèÒªÔÚÄúµÄЧÀÍÆ÷ÉÏÏÈ×°ÖÃÕâЩÒÀÀµÏî¡£
ÏÂÔØ GitLab
´Ó GitLab µÄ¹Ù·½ÍøÕ¾ÏÂÔØ×îа汾µÄ GitLab¡£¿ÉÒÔÔÚ GitLab µÄ¹Ù·½ÍøÕ¾ÏÂÔØ×îа汾µÄ GitLab¡£Äú¿ÉÒÔÑ¡ÔñÏÂÔØÔ´´úÂëÀ´×Ô¼º¹¹½¨£¬»òÕßÖ±½ÓÏÂÔØÒѹ¹½¨µÄ¶þ½øÖÆÎļþ¡£
×°ÖÃ GitLab
ÔÚÏÂÔØ GitLab Ö®ºó£¬ÇëÖ´ÐÐÒÔÏÂÏÂÁÆä×°ÖÃÔÚЧÀÍÆ÷ÉÏ£º
sudo apt-get install gitlab-ce
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄúÊÕµ½ÌáÐÑÐèҪװÖÃijЩÒÀÀµÏÔòÌí¼ÓÒÔÏÂÏÂÁ
sudo apt-get install curl openssh-server ca-certificates postfix
µÇ¼ºó¸´ÖÆ
×¢ÖØ£ºÕâ¸öÏÂÁîÔÚ Ubuntu ÇéÐÎÖÐÔËÐУ¬ÆäËûÇéÐοÉÄÜ»áÓÐËù²î±ð¡£Çëƾ֤ÄúµÄ²Ù×÷ϵͳºÍ°æ±¾Ê¹ÓÃÏìÓ¦µÄÏÂÁî¡£
×°ÖÃÍê³ÉÖ®ºó½ûÓ÷À»ðǽ£¬È»ºóÆô¶¯ gitlab¡£
sudo ufw disable sudo systemctl start gitlab-runsvdir.service
µÇ¼ºó¸´ÖÆ
ÉèÖÃ GitLab
ÔÚ×°Öà GitLab Íê³ÉÖ®ºó£¬ÐèÒª¾ÙÐÐһЩ¼òÆÓµÄÉèÖòŻª×îÏÈʹÓÃËü¡£Ä¬ÈÏÇéÐÎÏ£¬GitLab »á½«ÆäÊý¾ÝÉúÑÄÔÚ¡®/var/opt/gitlab¡¯Ä¿Â¼ÖУ¬ÈôÊÇÏë¸Ä±ä´ËλÖ㬿ÉÒÔͨ¹ýÐÞ¸Ä /etc/gitlab/gitlab.rb ÎļþÀ´ÊµÏÖ¡£
ÖØÆô gitlab ÉèÖÃÎļþÉúЧ£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
×îºó£¬ÔÚä¯ÀÀÆ÷Öлá¼ûÄúµÄЧÀÍÆ÷ IP µØµã»òÕßÄúµÄÓòÃû£¬ÄúÓ¦¸Ã¿ÉÒÔ¿´µ½ GitLab µÄ½Ó´ýÒ³ÃæÁË¡£Íê³ÉÁËÕâЩ°ì·¨Ö®ºó£¬Äú¾Í¿ÉÒÔ×îÏÈÔÚ×Ô¼ºµÄ GitLab ЧÀÍÆ÷ÉϽ¨ÉèºÍÖÎÀíÏîÄ¿ÁË¡£
ÒÔÉϾÍÊÇÔõÑù½« Gitlab ´î½¨ÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉϵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡