How To Install and Configure GitLab on Ubuntu 18.04 | DigitalOcean

In-Docker installation

In-VM installation via vagrant

Bare-metal installation

sudo apt-get install -y curl openssh-server ca-certificates tzdata perl

Install gitlab providing external URL for accessing web interface:

sudo EXTERNAL_URL="<http://gitlab.leha-vnuk.ru>" apt install gitlab-ce

Show gitlab admin initial password (file with password will be deleted in 1 day adter generation)

sudo cat /etc/gitlab/initial_root_password

In case ты проебал admin initial password you can change it in command prompt:

sudo gitlab-rake "gitlab:password:reset[root]"

To make it work go to group/repo/global CI settings and get gitlab runner token.

Untitled

Untitled

Install gitlab runner:

sudo apt install gitlab-runner

Follow step-by-step instruction to register the runner:

sudo gitlab-runner register

If you register local runner on same machine you installed gitlab to make sure you’re able to clone repo from in via http. In case not add respective line to gitlab runner config - clone_url. Sample: