[Git] GitLab Setup step by step using Bitnami

  • 500
  • 0
  • Git
  • 2015-11-21

摘要:[Git] GitLab Setup step by step using Bitnami

GitLabTest

This is a step by step tourist for how to build up a GitLab from Bitnami VM

GitLab from Bitnami

Download

Wiki - BitNami GitLab

General Setup

  1. Update your apache for GitLab host to example.com

     $ sudo /opt/bitnami/apps/gitlab/bnconfig --machine_hostname example.com
    
  2. Add example.com to host

     127.0.0.1    example.com
    
  3. Update GitLab setting to correct host display

     $ sudo vi /opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml
     host: example.com
    
  4. restart(need do this action once configuration change)

     $ sudo /opt/bitnami/ctlscript.sh restart
    

SSH Setup

  1. Server open SSH setting

     $ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
     $ sudo start ssh
    
  2. VM open port forwarding

    Setting>Network>Port Forwarding

    port

  3. Client generate Key-pairs

    • Linux & Mac

        $ sudo ssh-keygen
      
    • Windows

      PuTTY

  4. Bidning Public key to GitLab account

    SSH Keys>Add

    SSH public

  5. Open SourceTree and clone with SSH protocal

    Clone wih SSH

    Windows need add private key to computer first, can use Pageant

Get file from Host to Client VM using SSH protocal


如果覺得文章還不錯麻煩請在文章最上面給予推薦,你的支持是小弟繼續努力產出的動力!