14 Okt

Git | Advanced – Setup a Git Server

Install Vagrant

Check Vagrant file

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"
  config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.synced_folder "/CLOUD", "/CLOUD"
end

Start Vagrant Box

$ vagrant up

SSH to Vagrant Box

$ vagrant ssh

Update Vagrant Box

$ sudo bash
# apt-get update
# apt-get upgrade

 Install Git

apt-get install git-core

Install Gitlab

You will find the original documentation here.

apt-get install curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
apt-get install gitlab-ce

Configure and start GitLab

gitlab-ctl reconfigure

#
#
#
#
#
#
#
#
#
#
#
#