Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qzchenwl/vagrant-gitlab
Vagrant box with GitLab.
https://github.com/qzchenwl/vagrant-gitlab
Last synced: about 6 hours ago
JSON representation
Vagrant box with GitLab.
- Host: GitHub
- URL: https://github.com/qzchenwl/vagrant-gitlab
- Owner: qzchenwl
- Created: 2015-01-31T13:59:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-31T15:03:07.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T15:11:52.183Z (over 1 year ago)
- Size: 273 KB
- Stars: 13
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
1. Clone this repo
1. Install [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/)
1. `vagrant up`
1. `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](Vagrantfile#L26~L27).
## Customization
### Hostname
Change `config.vm.hostname = "gitlab.chenwl.com"`[link](Vagrantfile#L16) 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: 8022`[link](Vagrantfile#L27), 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`.
```sh
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: 8080`[link](Vagrantfile#L26), replace `8080` to any port you want your host to listen HTTP requests.
## Start
Username | Password
---------|-----------
root | 5iveL!fe