GitLabOnUbuntu
Jul 17, 2018
Technology
Install
Install via:
# apt-get install postfix gitlab-ce gitlab-runner
Configure
Configure the external_url
:
# vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.122.252'
# gitlab-ctl reconfigure && gitlab-ctl restart
Configure the gitlab-ci-multi-runner, take care of the gitlab-ci token is taken from the webUI:
# gitlab-ci-multi-runner register
Setup the runner for specified project:
Configuration for the runner:
Change the gitlab-runner as root
# vim /etc/systemd/system/gitlab-runner.service
Change from --user gitlab-runner to --user root
# systemctl daemon-reload
# systemctl restart gitlab-runner.service