ÔõôÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ×°ÖÃGitlab
gitlabÊÇÒ»¸öºÜÊÇÊ¢ÐеĴúÂëÍйÜƽ̨£¬Ö÷ÒªÓÃÓÚÍŶÓÐ×÷ºÍ°æ±¾¿ØÖÆ¡£ÈôÊÇÄúÐèÒªÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ×°ÖÃgitlab£¬±¾ÎĽ«ÎªÄúÏÈÈݼòÆÓÒ׶®µÄ°ì·¨¡£
È·ÈÏЧÀÍÆ÷ÉèÖÃ
ÔÚ×°ÖÃGitlab֮ǰ£¬ÇëÈ·±£ÄúµÄЧÀÍÆ÷Öª×ãÒÔÏÂ×îµÍÉèÖÃÒªÇó£º
4ºËCPU
4GB RAM
2GB´æ´¢¿Õ¼ä
Ubuntu 16.04»ò¸ü¸ß°æ±¾
×°ÖÃÐëÒªÈí¼þ°ü
ÔÚ×°ÖÃGitlab֮ǰ£¬ÐèҪװÖÃһЩÐëÒªµÄÈí¼þ°ü¡£ÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁ
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates tzdata
µÇ¼ºó¸´ÖÆ
×°ÖÃGitlab
×°ÖÃGitlab֮ǰ£¬ÄúÐèÒª»ñÈ¡GitlabµÄ×°Öðü£¬²¢Í¨¹ýÒÔÏÂÏÂÁÆäµ¼ÈëÄúµÄϵͳ£º
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
µÇ¼ºó¸´ÖÆ
½ÓÏÂÀ´£¬ÔËÐÐÒÔÏÂÏÂÁîÀ´×°ÖÃGitlab£º
sudo apt-get install gitlab-ee
µÇ¼ºó¸´ÖÆ
Gitlab×°Öúó£¬ÄúÐèҪʹÓÃÒÔÏÂÏÂÁîÀ´ÖØÐÂÉèÖÃgitlab£º
sudo gitlab-ctl reconfigure
µÇ¼ºó¸´ÖÆ
Æô¶¯Gitlab
×°ÖÃÍêGitlabÖ®ºó£¬ÐèÒªÆô¶¯GitlabЧÀÍ¡£
sudo gitlab-ctl start
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄúÐèÒª×èÖ¹GitlabЧÀÍ£¬ÔËÐÐÒÔÏÂÏÂÁ
sudo gitlab-ctl stop
µÇ¼ºó¸´ÖÆ
ÉèÖÃGitlab
ÔÚä¯ÀÀÆ÷ÖÐÊäÈëЧÀÍÆ÷µÄIPµØµã»òÓòÃû£¬Äú¿ÉÒÔ¿´µ½GitlabµÄµÇ¼ҳÃæ¡£Ê×ÏÈ£¬ÄúÐèÒª½¨ÉèÒ»¸öÖÎÀíÔ±Õ˺ţ¬ÒÔ±ãÖÎÀíGitlab¡£
µÇ¼ºó£¬ÄúÐèÒªÉèÖÃGitlabµÄһЩÉèÖã¬ÈçÓʼþÉèÖá¢LDAPÉèÖõȡ£Äú»¹¿ÉÒÔΪÏîÄ¿½¨Éè×飬²¢¿ØÖÆ×é³ÉÔ±¶ÔÏîÄ¿µÄ»á¼ûȨÏÞ¡£
ʹÓÃGitlab
×°ÖúÃGitlabºó£¬Äú¿ÉÒÔ½¨ÉèÄúµÄÏîÄ¿£¬²¢Ê¹ÓÃGitlab¾ÙÐа汾¿ØÖƺÍÍŶÓÐ×÷¡£Äú¿ÉÒÔʹÓÃGitlabµÄWeb½çÃæÀ´ÖÎÀíÄúµÄ´úÂë¿â¡¢ÎÊÌâ×·×ÙºÍÎĵµ¡£
×ܽá
ͨ¹ýÉÏÊö°ì·¨£¬Äú¿ÉÒÔÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ×°ÖÃGitlab£¬²¢×îÏÈʹÓÃGitlab¾ÙÐÐÍŶÓÐ×÷ºÍ°æ±¾¿ØÖÆ¡£GitlabÊÇÒ»¸öºÜÊÇÇ¿Ê¢µÄ¹¤¾ß£¬Ëü¿ÉÒÔ×ÊÖúÄúÔÚ¿ª·¢Àú³ÌÖÐÔ½·¢¸ßЧµØÖÎÀíºÍ¿ØÖÆ´úÂë¿â¡£
ÒÔÉϾÍÊÇÔõôÔÚ×Ô¼ºµÄЧÀÍÆ÷ÉÏ×°ÖÃGitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡