ÄÚÍøÔõô´î½¨gitlab
ÔÚÒ»Ñùƽ³£µÄ¿ª·¢ÖУ¬´úÂëÖÎÀíÊÇÊ®·ÖÒªº¦µÄÒ»ÏîʹÃü¡£¶øgitlab ÕýÊÇÒ»¿î³£ÓõĴúÂëÍйÜƽ̨¡£¹ØÓÚÆóÒµÄÚ²¿À´Ëµ£¬ÎªÁË°ü¹Ü´úÂëÇå¾²ÐÔºÍÍøÂçÇå¾²ÐÔ£¬ÄÚÍø´î½¨gitlabÊÇÒ»¸ö²»´íµÄÑ¡Ôñ¡£
Ò»¡¢×°ÖÃÓëÉèÖÃ
1.×°ÖÃGitLab
ÔÚUbuntu 18.04 ÉÏ×°ÖÃGitLab°ì·¨£º
×°ÖÃÐëÒªµÄÒÀÀµ:sudo apt-get update ¡¢ sudo apt-get install -y curl openssh-server ca-certificates
×°ÖÃGitLab:curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh > install.sh && sudo bash install.sh && sudo apt-get install gitlab-ce
ÆäÖУ¬µÚ¶þ²½¿ÉÄÜÐèÒªÆÚ´ý½Ï³¤Ê±¼ä£¬Íê³Éºó¿Éͨ¹ýÖ´ÐÐsudo gitlab-ctl reconfigureÀ´Æô¶¯GitLab¡£
2.ÉèÖÃGitLab
×°ÖÃÍê³Éºó£¬¿ÉÒÔͨ¹ý»á¼ûhttp://[ЧÀÍÆ÷IP]:80À´Éó²éGitLabÒ³Ãæ¡£
ÔÚµÚÒ»´ÎʹÓÃGitLabÇ°£¬ÐèÒª¾ÙÐÐһЩÉèÖãº
ÉèÖÃÖÎÀíÔ±Õ˺ÅÃÜÂ롣ĬÈÏÖÎÀíÔ±Õ˺ÅÊÇroot£¬ÃÜÂë»áÔÚµÚÒ»´ÎµÇ¼ʱÌáÐÑÉèÖá£
ÉèÖÃSMTPЧÀÍ¡£Ö÷Òª¹¦Ð§ÊÇÓÃÓÚ·¢ËÍÓʼþ¡£¿ÉÒÔÔÚAdmin Area > Settings > Outbound emailÖоÙÐÐÉèÖá£
ÉèÖÃHTTPS¡£¿ÉÒÔÔÚAdmin Area > Settings > Network > Outgoing emails addressÖпªÆô¡¢¹Ø±ÕºÍÉèÖá£
ÔÊÐíRegistration¡£¼´ÉèÖÃÊÇ·ñÔÊÐí»á¼ûÕß×¢²áÕ˺š£¿ÉÒÔÔÚAdmin Area > Settings > GeneralÖÐÉèÖá£
ÉèÖÃ×¢²áÏÞÖÆÌõ¼þ¡£¿ÉÒÔÔÚ Admin Area > Settings > Sign-up restrictions ÖÐÉèÖá£
3.½¨ÉèÏîÄ¿
ÔÚGitLabÖУ¬ÏîÄ¿ÊÇ×î»ù±¾µÄµ¥Î»¡£½¨ÉèÏîÄ¿µÄÒªÁìÈçÏ£º
µã»÷ÓÒ²àµÄNew project°´Å¥¡£
ÉèÖÃÏîÄ¿ÐÅÏ¢£¬ÈçÃû³Æ¡¢ÐÎò¡¢¿É¼ûÐԵȡ£
ÉèÖÃȨÏÞ£¬¼´ÊÇ·ñÉ趨ÏîÄ¿¿É¼ûÐÔ¡£¿ÉÒÔÉèÖÃΪ¹ûÕ桢˽ÓС¢Ö¸¶¨³ÉÔ±¿É¼ûµÈ²î±ðÌõ¼þ¡£
¶þ¡¢GitLabÊг¡ÓÅÊÆ
1.Ç¿Ê¢µÄ´úÂëÖÎÀí¹¦Ð§
GitLab×÷Ϊһ¸öרҵµÄ´úÂëÍйÜƽ̨£¬ÔÚ´úÂëÖÎÀí·½ÃæÓÐןÜÊÇÇ¿Ê¢ÇÒ±ã½ÝµÄ¹¦Ð§£¬È磺
¿ìËٵĴúÂëºÏ²¢ºÍ³åÍ»½â¾ö¡£
Ö§³ÖÌá½»ºÍ×÷·ÏºÏ²¢ÇëÇó¡£
¿ÉÊÓ»¯´úÂëä¯ÀÀºÍÎļþÀúÊ·Éó²é¡£
ÓëGitLab CIϵͳ½Ó¿ÚÍêÉÆÍŽᣬʵÏÖ×Ô¶¯¹¹½¨ºÍÒ»Á¬¼¯³ÉµÈ¡£
GitLab WorkflowÖ§³Ö¿ÉÒÔ×Ô¼º½ç˵Á÷³Ì£¬ºÃ±ÈÔÚ´úÂëÌá½»µ½Ö¸¶¨·Ö֧ʱ´¥·¢×Ô¶¯»¯Á÷Ë®Ïß²Ù×÷¡£
2.´úÂë¹ØÁªÓëÐ×÷
GitLabÌṩÁËÇ¿Ê¢µÄ´úÂë¹ØÁªºÍÐ×÷¹¦Ð§£¬Äܹ»ÇáËÉʵÏÖÒÉÄÑÎÊÌâµÄÆÊÎöÏ¢Õù¾ö¡£
´úÂë¹ØÁª¿ÉÒÔͨ¹ýIssue¡¢Merge Request¡¢ÖÎÀíÌÖÂ۵ȷ½·¨À´ÊµÏÖ¡£
¿ÉÒÔÒÀ¾ÝIssue¾ÙÐÐʹÃü·ÖÅÉ£¬Í¬Ê±Ò²ÄÜͳ¼ÆÎÊÌâ½â¾öЧÂÊ¡£
GitLabµÄMerge request»úÖÆʹµÃÏîÄ¿³ÉÔ±Ö®¼ä¿ÉÒÔÇáËÉÐ×÷£¬¹¹½¨¸üºÃµÄ´úÂë¿â¡£
3.¸üºÃµÄÍŶÓȨÏÞÖÎÀí
GitLabÖУ¬³ÉԱȨÏÞÖÎÀí¿ÉÒÔϸ·Öµ½Ã¿¸öÏîÄ¿µÄ²î±ð½ÇÉ«£¬ÈçDeveloper¡¢Maintainer¡¢Owner¡¢GuestµÈµÈ£¬Ê¹µÃÍŶӳÉÔ±µÄȨÏÞ¿É¿Ø£¬°ü¹ÜÆóÒµ´úÂëºÍÊý¾ÝµÄÇå¾²ÐԺͿɿ¿ÐÔ¡£
4.¸»ºñµÄ²å¼þºÍÓ¦ÓÃÉ̳Ç
GitLabÓµÓи»ºñµÄ²å¼þºÍÓ¦ÓÃÉ̳ǣ¬¿ÉÒÔͨ¹ý²å¼þºÍÓ¦ÓÃÉ̳ÇÀ´ÊµÏÖ¸ü¶àµÄ¹¦Ð§¡£ÀýÈ磬¿ÉÒÔͨ¹ý²å¼þʵÏÖÓëJiraµÄ¼¯³É£¬»¹¿ÉÒÔÌí¼Ókanban¡¢Burndown ChartµÈ²å¼þÀ´Íê³ÉÏîÄ¿ÖÎÀí¡£
Èý¡¢×ܽá
ÄÚÍø´î½¨GitLabÊÇÆóÒµÄÚ²¿´úÂëÍйܵÄÖ÷ҪѡÔñÖ®Ò»£¬GitLabΪÆóÒµÌṩÁËÍêÕûµÄ´úÂëÍйܡ¢°æ±¾ÖÎÀí¡¢ÍŶÓÐ×÷¡¢È¨ÏÞÖÎÀí¡¢×Ô¶¯»¯Á÷Ë®ÏßÒÔ¼°¸ü¸»ºñµÄÀ©Õ¹¹¦Ð§¡£Ï£Íûͨ¹ý±¾ÎĵÄÏÈÈÝ£¬¶ÁÕßÄܹ»ÏàʶGitLabµÄ×°ÖúÍÉèÖÃÀú³Ì£¬Í¬Ê±ÏàʶGitLabµÄÊг¡ÓÅÊÆ£¬Îª×Ô¼º»òÍŶÓÑ¡ÔñºÏÊʵÄÖÎÀí¹¤¾ß¡£
ÒÔÉϾÍÊÇÄÚÍøÔõô´î½¨gitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡