[Git] GitLab Setup step by step using Bitnami

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


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

GitLab from Bitnami


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    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


  3. Client generate Key-pairs

    • Linux & Mac

        $ sudo ssh-keygen
    • Windows


  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