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

![](/files/-M-BWKNwPFukH4OanSKi)

**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](/antlets/access-antlets.md).

**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](/files/-M-BWfw8xQebfRyO0A0c)

Happy Pushing!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.antsle.com/get-started/setting-up-your-tech-stack/gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
