Skip to content

qzchenwl/vagrant-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Installation

  1. Clone this repo
  2. Install Vagrant and VirtualBox
  3. vagrant up
  4. vagrant ssh

This will create a ubuntu virtual machine with gitlab running. By default, web port forwards to 8080 and ssh port forwards to 8022. You can change that in Vagrantfile.

Customization

Hostname

Change config.vm.hostname = "gitlab.chenwl.com"link to your own hostname. This will be hostname of your site.

Without a valid hostname, your mail sent to Gmail will be blocked.

Port forwarding

SSH Port

Find line config.vm.network "forwarded_port", guest: 22, host: 8022link, replace 8022 to any port you want ssh to connect.

Git client side need to configure ssh to connect to this port by default. Append following lines to ~/.ssh/config.

Host gitlab.chenwl.com # replace with your hostname
  Port 8022            # replace with your ssh port

Web Port

Find line config.vm.network "forwarding_port", guest: 80, host: 8080link, replace 8080 to any port you want your host to listen HTTP requests.

Start

Username Password
root 5iveL!fe

About

Vagrant box with GitLab.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published