ÁÄÁÄÔõÑù×°ÖÃ GitLab 8
ÔõÑù×°ÖÃ gitlab 8
GitLab 8 ÊÇÒ»¸öÃâ·Ñ¡¢¿ªÔ´µÄ Git ¿ÍÕ»ÖÎÀíϵͳ¡£ËüÊÇÒ»¸ö×ÔÍÐ¹ÜµÄ git ÏîÄ¿£¬ÌṩÁËÐí¶à¹¦Ð§£¬ºÃ±È´úÂëÉó²é¡¢wiki¡¢CI µÈ¡£Òª×Ô¼º´î½¨ GitLab£¬±¾ÎĽ«ÏòÄãÏÈÈÝÔõÑù×°Öà gitlab 8¡£
×¢ÖØ£º±¾ÎļÙÉèÄãÒѾװÖò¢ÉèÖúÃÁË Docker¡£ÈôÊÇÄ㻹ûÓÐ×°Öà Docker£¬ÇëÏÈƾ֤ Docker µÄ×°ÖÃÖ¸ÄϾÙÐвÙ×÷¡£
°ì·¨ 1£º½¨Éè GitLab ÊÂÇéĿ¼
Ê×ÏÈ£¬½¨Éè´æ´¢ GitLab Êý¾ÝºÍÉèÖõÄĿ¼¡£ÎÒÃÇʹÓà /srv/gitlab/examplecom/ Ŀ¼£º
sudo mkdir -p /srv/gitlab/examplecom/config
sudo mkdir -p /srv/gitlab/examplecom/logs
sudo mkdir -p /srv/gitlab/examplecom/data
°ì·¨ 2£º½¨Éè GitLab ¾µÏñ
ΪÁËʹÓà GitLab£¬ÎÒÃÇÐèÒªÒ»¸ö Docker ¾µÏñ¡£Docker ¹Ù·½ÌṩÁ˹ٷ½ GitLab ¾µÏñ£¬»ùÓÚ Ubuntu 14.04ÖÆ×÷¡£
sudo docker pull gitlab/gitlab-ce:latest
°ì·¨ 3£ºÔËÐÐ GitLab ÈÝÆ÷
ÏÖÔÚÎÒÃÇÒѾ׼±¸ºÃÁËÈÝÆ÷ÔËÐÐËùÐèµÄËùÓв¿¼þ¡£
sudo docker run –detach \
–hostname gi.example.com \
–publish 443:443 –publish 80:80 –publish 22:22 \
–name gitlab \
–restart always \
–volume /srv/gitlab/examplecom/config:/etc/gitlab \
–volume /srv/gitlab/examplecom/logs:/var/log/gitlab \
–volume /srv/gitlab/examplecom/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
°ì·¨ 4£ºÉèÖà GitLab
ÏÖÔÚÎÒÃÇ¿ÉÒÔͨ¹ýä¯ÀÀÆ÷»á¼û Docker Ö÷»úIP µØµãºÍÉèÖà GitLab¡£GitLab ³õʼ»¯²»ÐèÒªºÜ³¤Ê±¼ä¡£
http:// /
°ì·¨ 5£ºµÇ¼µ½ GitLab
ʹÓÃĬÈÏÖÎÀíÔ±Óû§ÃûºÍ³õʼÃÜÂëµÇ¼£º
Óû§Ãû£ºroot
ÃÜÂ룺5iveL!fe
ÏÖÔÚÄã¿ÉÒÔ¸ü¸ÄÃÜÂëÁË¡£ÊäÈëÄúµÄµç×ÓÓʼþµØµã£¬¼´¿É»Ö¸´»á¼ûÃÜÂë¡£
°ì·¨ 6£º½¨ÉèÄúµÄµÚÒ»¸öÏîÄ¿
ÏÖÔÚÄú¿ÉÒÔÔÚ GitLab ÉϽ¨ÉèÒ»¸öÐÂÏîÄ¿¡£²Ù×÷°ì·¨ÈçÏ£º
µã»÷ÓÒ²à²àÀ¸ÖÐ ¡° + ¡± ºÅ
µã»÷ ¡° New Project ¡±
ΪÏîÄ¿ÃüÃû
Ñ¡ÔñÏîÄ¿µÄ¿ØÖÆÀàÐÍ£¬Èç Git¡¢SVN»òMercurial µÈ
µã»÷¡°Create project¡± °´Å¥
ÏÖÔÚÄã¿ÉÒÔΪÄãµÄÏîÄ¿Ìí¼ÓÓû§£¬ÉèÖÃȨÏ޵ȵȡ£
Íê³ÉÒÔÉÏ°ì·¨ºó£¬ÄúÒѾÀֳɵØ×°ÖÃÁË GitLab 8¡£ÏÖÔÚÄú¿ÉÒÔ×îÏÈʹÓÃËüÀ´ÖÎÀíÄúµÄ´úÂë¿â¡¢wiki¡¢CIµÈ¡£
ÒÔÉϾÍÊÇÁÄÁÄÔõÑù×°Öà GitLab 8µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡