ÔõÑùʹÓÃDocker×Ô¶¯´î½¨GitLab£¿£¨½Ì³Ì£©
gitlabÊÇÒ»¿î¹¦Ð§Ç¿Ê¢µÄ¿ªÔ´°æ±¾¿ØÖÆϵͳ£¬Äܹ»Öª×ãÈí¼þÍŶӵĴúÂëÖÎÀí¡¢°æ±¾¿ØÖÆ¡¢Ð×÷¿ª·¢µÈÐèÇó¡£ÔÚÏÖʵӦÓÃÖУ¬gitlab¿ÉÒÔΪ¿ª·¢Ö°Ô±Ìṩһ¸öÐ×÷µÄƽ̨£¬Ê¹µÃ¶àÈËÏàÖú¿ª·¢±äµÃÔ½·¢¸ßЧ¡£
±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃDocker×Ô¶¯´î½¨GitLab¡£
µÚÒ»²½£º×°ÖÃDocker
ÔÚDocker¹ÙÍøÉÏÏÂÔØÊʺÏ×Ô¼º²Ù×÷ϵͳµÄDocker²¢¾ÙÐÐ×°Öá£
µÚ¶þ²½£ºÀÈ¡GitLab¾µÏñ
ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ
docker pull gitlab/gitlab-ce:latest
µÇ¼ºó¸´ÖÆ
ÆÚ´ý¾µÏñÀÈ¡Íê³É£¬¼´¿É¾ÙÐÐÏÂÒ»²½²Ù×÷¡£
µÚÈý²½£º½¨ÉèGitLabÈÝÆ÷
ÊäÈëÒÔÏÂÏÂÁîÀ´Æô¶¯ÈÝÆ÷£º
docker run --detach \ --hostname www.gitlab.com \ --publish 443:443 --publish 80:80 --publish 22:22 \ --name gitlab \ --restart always \ --volume /srv/gitlab/config:/etc/gitlab \ --volume /srv/gitlab/logs:/var/log/gitlab \ --volume /srv/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁîÖи÷¸ö²ÎÊýµÄ¼ÄÒåÈçÏ£º
–hostname£ºÖ¸¶¨GitLabµÄÓòÃû¡£
–publish£º½«ÈÝÆ÷¶Ë¿ÚÓëËÞÖ÷»ú¶Ë¿Ú¾ÙÐÐÓ³Éä¡£
–name£ºÖ¸¶¨ÈÝÆ÷µÄÃû³Æ¡£
–restart£ºÉèÖÃÈÝÆ÷µÄÖØÆôÕ½ÂÔ¡£
–volume£ºÖ¸¶¨¹ÒÔصÄÊý¾Ý¾í¡£
gitlab/gitlab-ce:latest£ºÖ¸¶¨¾µÏñÃû³ÆºÍ°æ±¾ºÅ¡£
ÒÔÉÏÏÂÁîÖУ¬ÐèҪעÖØÒÔϼ¸µã£º
1.ÈÝÆ÷ÃüÃû²»ÒªÓëÆäËûÈÝÖØÊÓ¸´¡£
2.ʹÓÃÐëÒªµÄ¶Ë¿ÚÓ³Éä¡£
3.¹ÒÔصÄÊý¾Ý¾íÒªÔÚËÞÖ÷»úÉÏÏȽ¨ÉèºÃ¡£
µÚËIJ½£º»á¼ûGitLab
µ±ÈÝÆ÷Æô¶¯ºó£¬¿ÉÔÚä¯ÀÀÆ÷ÖÐÊäÈëIPµØµã»ò×Ô½ç˵µÄÓòÃû»á¼ûGitLab¡£
ÔÚµÚÒ»´Î»á¼ûʱ£¬ÐèÒªÉèÖÃÖÎÀíÔ±Õ˺ż°ÃÜÂë¡£
ÖÁ´Ë£¬ÎÒÃÇÒѾÍê³ÉÁËGitLabµÄ×Ô¶¯´î½¨£¬¿ÉÒÔ¾ÙÐдúÂëÖÎÀí¡¢°æ±¾¿ØÖƼ°ÍŶÓÐ×÷ÁË¡£
×ܽ᣺
ʹÓÃDocker×Ô¶¯´î½¨GitLabºÜÊǼòÆÓ£¬Ö»ÐèÒª¼¸ÌõÏÂÁî¼´¿ÉÇáËÉÍê³É¡£Ê¹ÓÃGitLabÄܹ»Ìá¸ß¿ª·¢ÍŶÓÖ®¼äµÄÐ×÷ЧÂÊ£¬²¢Äܹ»¸üºÃµØ°ü¹Ü´úÂëµÄ°æ±¾¿ØÖƼ°ÖÎÀí£¬ÊÇÈí¼þ¿ª·¢Àú³ÌÖв»¿É»òȱµÄ¹¤¾ßÖ®Ò»¡£
ÒÔÉϾÍÊÇÔõÑùʹÓÃDocker×Ô¶¯´î½¨GitLab£¿£¨½Ì³Ì£©µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡