ÔõÑùÔÚUbuntuÉÏ×°ÖÃÉèÖÃGitLab
gitlabÊÇÒ»¸öÔÚÏßgit¿ÍÕ»ÖÎÀíϵͳ£¬¿ÉÓÃÓÚÍŶÓÐ×÷¿ª·¢¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚubuntu 18.04ЧÀÍÆ÷ÉÏ×°ÖúÍÉèÖÃgitlab¡£
×¼±¸ÊÂÇ飺
һ̨ÔËÐÐUbuntu 18.04µÄЧÀÍÆ÷¡£
¾²Ì¬IPµØµã¡£
¾ßÓÐsudoȨÏÞµÄÓû§¡£
°ì·¨Ò»£º¸üÐÂЧÀÍÆ÷
Ê×ÏÈ£¬ÔÚÖÕ¶ËÖеǼµ½Ð§ÀÍÆ÷²¢¸üÐÂÈí¼þ°ü¡£
sudo apt-get update sudo apt-get upgrade
µÇ¼ºó¸´ÖÆ
°ì·¨¶þ£º×°ÖÃÐëÒªµÄÒÀÀµ
ÔËÐÐÒÔÏÂÏÂÁîÒÔ×°ÖÃGitLabËùÐèµÄÒÀÀµÏ
sudo apt-get install -y curl openssh-server ca-certificates sudo apt-get install -y postfix
µÇ¼ºó¸´ÖÆ
ÔÚ×°ÖÃPostfixʱ£¬Äú½«±»ÒªÇóÊäÈëÄúµÄÓʼþЧÀÍÆ÷ÉèÖá£ÔÚ±¾ÀýÖУ¬ÎÒÃǽ«Ê¹ÓÃInternet Site¡£
°ì·¨Èý£ºÌí¼ÓGitLab¿ÍÕ»
Ìí¼ÓGitLab¿ÍÕ»ÒÔ»ñÈ¡×îа汾µÄGitLab¡£
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
µÇ¼ºó¸´ÖÆ
°ì·¨ËÄ£º×°ÖÃGitLab
ÒÔÏÂÏÂÁװÖÃGitLab£º
sudo EXTERNAL_URL="http://gitlab.example.com" apt-get install gitlab-ee
µÇ¼ºó¸´ÖÆ
Çë×¢ÖØ£¬ÄúÐèÒª½«EXTERNAL_URLÌ滻ΪÄúµÄÓòÃû»òIPµØµã¡£ÆÚ´ý×°ÖÃÍê³É£¬Õâ¿ÉÄÜÐèҪһЩʱ¼ä¡£
°ì·¨Î壺»á¼ûGitLab
ÏÖÔÚ£¬Äú¿ÉÒÔʹÓÃÄúµÄWebä¯ÀÀÆ÷»á¼ûGitLab£¬¸Ãä¯ÀÀÆ÷±ØÐèÓëÄúµÄЧÀÍÆ÷λÓÚͳһÍøÂçÖС£
http://your-ip-address
µÇ¼ºó¸´ÖÆ
ƾ֤ÏÂÃæµÄÆÁÄ»ÌáÐѾÙÐгõʼ»¯ÉèÖá£
°ì·¨Áù£ºÉèÖÃGitLab
Ê×´ÎÆô¶¯GitLabʱ£¬ÄúÐèÒª¾ÙÐÐһЩ»ù±¾ÉèÖá£×ªµ½gitlab.example.com²¢½¨ÉèÄúµÄÖÎÀíÔ±ÕÊ»§¡£ÔڵǼºó£¬Äú¿ÉÒÔ¸ü¸ÄÈκÎÆäËûGitLabÉèÖÃÑ¡Ïî¡£
½áÂÛ£º
¹§Ï²Äú£¡ÄúÒÑÀֳɵØÔÚUbuntu 18.04ЧÀÍÆ÷ÉÏ×°ÖúÍÉèÖÃÁËGitLab¡£ÏÖÔÚ£¬Äú¿ÉÒÔʹÓÃGitLabÀ´ÓÐÓõØÐ×÷¿ª·¢ºÍÖÎÀí´úÂë¿â¡£
ÒÔÉϾÍÊÇÔõÑùÔÚUbuntuÉÏ×°ÖÃÉèÖÃGitLabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡