macÉÏÔõôװÖÃgitlab£¿°ì·¨Ïê½â
macgitlab ÊÇÒ»¿îÔ´´úÂëÖÎÀíƽ̨£¬ÊÇ gitlab µÄÒ»¸ö¿ªÔ´°æ±¾¡£ËüÔÊÐíÍŶÓÐ×÷À´ÖÎÀíºÍ¿ª·¢ÏîÄ¿£¬²¢¿ÉÒÔÔÚÒ»¸öµØ·½´æ´¢£¬ÖÎÀíºÍä¯ÀÀÔ´´úÂë¡£
×°Öà MacGitlab ÐèҪעÖØÒÔϼ¸¸ö°ì·¨£º
×°ÖÃ Homebrew
Homebrew ÊÇ Mac ÉϵÄÈí¼þ°ü¹ÜÀíÆ÷£¬ÎÒÃÇ¿ÉÒÔͨ¹ýËüÀ´Àû±ãµÄ×°Öà MacGitlab¡£ÎÒÃÇÏÈÔÚÏÂÁîÐÐÖÐÊäÈëÒÔÏÂÏÂÁװÖà Homebrew£º
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
µÇ¼ºó¸´ÖÆ
×°ÖÃÒÀÀµÏî
MacGitlab ÒÀÀµÓÚһЩÈí¼þ°ü£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´×°ÖÃÕâЩÒÀÀµÏ
$ brew install redis postgresql imagemagick
µÇ¼ºó¸´ÖÆ
×°ÖÃ MacGitlab
ÏÖÔÚÎÒÃÇ¿ÉÒÔ×°Öà MacGitlab ÁË£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´×°Öãº
$ brew install --HEAD gitlab
µÇ¼ºó¸´ÖÆ
Õâ¸öÀú³Ì¿ÉÄÜÐèÒª¼¸·ÖÖӲŻªÍê³É¡£
ÉèÖÃ MacGitlab
×°ÖÃÍê³Éºó£¬ÎÒÃÇÐèÒª¾ÙÐÐһЩÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒªÆô¶¯ postgresql ºÍ redis ЧÀÍÆ÷¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´Æô¶¯£º
$ brew services start postgresql $ brew services start redis
µÇ¼ºó¸´ÖÆ
Ö®ºó£¬ÎÒÃÇÐèÒª½« MacGitlab µÄÉèÖøüе½Êý¾Ý¿âÖС£ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´¸üÐÂÉèÖãº
$ sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
Õâ¸öÀú³Ì¿ÉÄÜÐèÒªÒ»¶Îʱ¼ä²Å»ªÍê³É£¬È¡¾öÓÚÄúµÄ»úеÐÔÄÜ¡£
Æô¶¯ MacGitlab
ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔÆô¶¯ MacGitlab ÁË£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´Æô¶¯£º
$ sudo gitlab-ctl start
µÇ¼ºó¸´ÖÆ
Õâ¸öÏÂÁÆô¶¯ËùÓбØÐèµÄ MacGitlab ×é¼þ£¬°üÀ¨ÍøÕ¾£¬ÓʼþºÍºǫ́ʹÃü¡£
»á¼û MacGitlab
ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔÔÚä¯ÀÀÆ÷Öлá¼û MacGitlab ÁË¡£Ä¬ÈÏÇéÐÎÏ£¬MacGitlab ÔËÐÐÔÚµ±ÌïÖ÷»úµÄ¶Ë¿ÚºÅ 8080 ÉÏ£¬µØµãΪ http://localhost:8080 ¡£ÎÒÃÇ¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÊäÈëÕâ¸öµØµãÀ´»á¼û MacGitlab¡£
ÉèÖÃÖÎÀíÔ±ÕË»§
µÚÒ»´Î»á¼û MacGitlab ʱ£¬ÐèÒªÉèÖÃÖÎÀíÔ±ÕË»§¡£ÄúÐèÒª½¨ÉèÒ»¸öÖÎÀíÔ±ÕË»§²¢ÉèÖÃÃÜÂë¡£Íê³ÉÕâЩ²Ù×÷ºó£¬Äú¾Í¿ÉÒÔ×îÏÈʹÓà MacGitlab À´ÖÎÀíÄúµÄ´úÂëÁË¡£
×ܽ᣺
ÒÔÉϾÍÊÇÔÚ Mac ÉÏ×°Öà MacGitlab µÄ°ì·¨¡£MacGitlab ÊÇÒ»¿îºÜÊÇÇ¿Ê¢µÄÔ´´úÂëÖÎÀí¹¤¾ß£¬ËüÔÊÐíÍŶÓÐ×÷À´ÖÎÀíºÍ¿ª·¢ÏîÄ¿£¬²¢¿ÉÒÔÔÚÒ»¸öµØ·½´æ´¢£¬ÖÎÀíºÍä¯ÀÀÔ´´úÂ롣ϣÍûÕâƪÎÄÕÂÄܹ»×ÊÖúÄú¿ìËÙÉÏÊÖ MacGitlab£¬ÈÃÄú¿ÉÒÔ¸üºÃµÄÖÎÀíºÍ¿ª·¢ÄúµÄ´úÂë¡£
ÒÔÉϾÍÊÇmacÉÏÔõôװÖÃgitlab£¿°ì·¨Ïê½âµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡