ÔõÑùÔÚVMÐéÄâ»úÉÏ×°ÖÃGitLabЧÀͶË
vmÐéÄâ»úÉÏ×°ÖÃgitlabЧÀͶË
GitLabÊÇÒ»ÖÖ»ùÓÚGitµÄ´úÂëÍйܺͰ汾¿ØÖƹ¤¾ß£¬ËüÌṩÁËÒ»¸öÍêÕûµÄ½â¾ö¼Æ»®À´ÖÎÀíºÍ¼à¿Ø´úÂëµÄÐ޸ġ£ÈôÊÇÄúÐèÒªÒ»¸ö¿É¿¿µÄ´úÂëÍйܺͰ汾¿ØÖƽâ¾ö¼Æ»®£¬ÄÇôGitLab¿ÉÄÜÊÇÄúµÄ²»¶þÑ¡Ôñ¡£
ΪÁËʹ´úÂëÍйÜÔ½·¢Àû±ãºÍ¿É¿¿£¬Ðí¶àÍŶӰÑGitLab°²ÅÅÔÚÐéÄâ»úÉÏ£¬ÓÉÓÚÐéÄâ»ú¿ÉÒÔÌṩһ¸öÎȹÌÇÒ¸ßЧµÄÔËÐÐÇéÐÎ ¡£½ÓÏÂÀ´ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚvmÐéÄâ»úÉÏ×°ÖÃgitlabЧÀͶˡ£
1.Ê×ÏÈ£¬ÎÒÃÇÐèÒªÔÚVMÐéÄâ»úÖÐ×°ÖÃÏÈ×°ÖÃDebian²Ù×÷ϵͳ£¬ÓÉÓÚGitLabÊÇ»ùÓÚRuby on Rails¿ª·¢µÄ£¬¶øDebianÓµÓи»ºñµÄRuby¿ª·¢ÇéÐΡ£ ÔËÐÐÒÔÏÂÏÂÁîÀ´×°ÖÃDebianϵͳ£º
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates postfix
µÇ¼ºó¸´ÖÆ
2.Ìí¼ÓGitLab¹Ù·½µÄPPA¿ÍÕ»¡£
curl https://packages.gitlab.com/gpg.key | sudo apt-key add - curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
µÇ¼ºó¸´ÖÆ
3.ÔËÐÐÒÔÏÂÏÂÁîÀ´×°ÖÃGitLabЧÀͶˡ£ÕâÀïÎÒÃÇ×°ÖõÄÊÇCommunity Edition°æ±¾¡£
sudo EXTERNAL_URL="http://gitlab.example.com" apt-get install gitlab-ce
µÇ¼ºó¸´ÖÆ
×¢ÖØ:´Ë´¦µÄhttp://gitlab.example.comÊÇGitLabµÄ»á¿´·¨Ö·£¬¿ÉÒÔƾ֤ÏÖʵµÄÐèÇó¾ÙÐиü¸Ä¡£
4.µ±×°ÖÃÍê³Éºó£¬»á¼û http://gitlab.example.com ¼´¿É½øÈëGitLabЧÀͶ˵ÄÊ×Ò³£¬µÇ¼ÖÎÀí¿ØÖÆ̨¡£
ÎÒÃÇÒѾÀֳɵØÔÚVMÐéÄâ»úÉÏ×°ÖÃÁËGitLabЧÀͶˣ¬ÄúÏÖÔÚ¿ÉÒÔʹÓøÃЧÀÍÀ´ÍйܴúÂëºÍÖÎÀí°æ±¾¿ØÖÆ¡£ÈôÊÇÄúÐèÒªÔ½·¢ÉîÈëµØÏàʶGitLabµÄʹÓúÍÉèÖ㬿ÉÒԲο¼GitLabµÄ¹Ù·½Îĵµ£¬²¢ÔÚºóÐøµÄʹÓúÍά»¤Öоò¿Í¸ü¶à¾ªÏ²£¡
ÒÔÉϾÍÊÇÔõÑùÔÚVMÐéÄâ»úÉÏ×°ÖÃGitLabЧÀͶ˵ÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡