# Gitlab

The installation instructions may become out of date at any time due to updates to Gitlab. Feel free to "Google it" as a supplement to this guide.

![](https://2204297924-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LykQfPew0YJZLWKBUYz%2F-M-BVdVN9wLCH0vMWIXC%2F-M-BWKNwPFukH4OanSKi%2Fgitlab-logo.png?alt=media\&token=1490b7b9-edbe-41b1-8207-2ec320791c09)

**1. Setup CentOS antlet**

Login to antMan and spin up an CentOS-7 KVM antlet.

SSH into your Antsle then your CentOS antlet

```
ssh <username>@<hostname>.local
ssh root@10.1.1.<antlet-ip>
```

The default root password is `antsle`

Update the system:

```
yum update
```

At the time of this writing the latest stable CentOS is 7.6

**2. Make antlet Accessible**

Read the docs article on [accessing your antlets](https://docs.antsle.com/antlets/access-antlets).

**3. Install GitLab**

First lets install all the dependencies required for GitLab CE:

```
yum install -y curl openssh-server openssh-clients policycoreutils-python
```

Next lets setup the GitLab CE RPM repository:

```
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh |  bash
```

Now to install GitLab. If you are accessing GitLab via domain name add that as the url parameter like below:

```
EXTERNAL_URL=“http://gitlab.example.com” yum install -y gitlab-ce
```

If you are accessing GitLab via the private IP:

```
EXTERNAL_URL=192.168.0.105 yum install -y gitlab-ce
```

Now type in the domain name or the private IP into your web browser to see your new source control system!

For a private IP example:

```
http://192.168.0.105
```

**4. Configure GitLab**

When you go to your new GitLab you will need to set your password. Then login with the user `root` and that password.

If you want to change the IP or domain name that points to GitLab, edit the file:

```
/etc/gitlab/gitlab.rb
```

On the 13th line you will see something like:

```
external_url 'http://192.168.0.108'
```

Just edit the url to your new IP or domain. Then run:

```
gitlab-ctl reconfigure
```

**Congratulations! You now have GitLab running on your own Private Cloud.**

![GitLab running on your Antsle](https://2204297924-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LykQfPew0YJZLWKBUYz%2F-M-BVdVN9wLCH0vMWIXC%2F-M-BWfw8xQebfRyO0A0c%2Fgitlab-start-page.png?alt=media\&token=17f49812-2f9e-456b-899d-e13d27b964fc)

Happy Pushing!
