User Tools

Site Tools


cloud:gitlab-runner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cloud:gitlab-runner [2018/03/08 13:31] – created rmuellercloud:gitlab-runner [2018/03/08 14:31] (current) rmueller
Line 1: Line 1:
 +====== Example Installation of a gitlab runner ======
 +
 +  - Create a Ubuntu VM (it does not need a floating IP)
 +  - Connect to your VM
 +  - <code>curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh |\
 +sudo bash</code>
 +  - sudo apt-get install gitlab-runner
 +
 +[[https://docs.gitlab.com/runner/install/linux-repository.html|Source]]
 +===== Install Docker if you want to use docker =====
 +
 +  - <code>sudo apt-get update</code>
 +  - <code>sudo apt-get install \
 +    apt-transport-https \
 +    ca-certificates \
 +    curl \
 +    software-properties-common</code>
 +  - <code>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - </code>
 +  - <code>sudo add-apt-repository \
 +   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
 +   $(lsb_release -cs) \
 +   stable"</code>
 +  - <code>sudo apt-get update</code>
 +  - <code>sudo apt-get install docker-ce</code>
 +  - check your installaton with: 
 +    - <code>sudo docker run hello-world</code>
 +
 +[[https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository|Source]]
 +
 +===== Register specific gitlab-runner =====
 +
 +  - Get your project specific runner token (%%https://git.computational.bio.uni-giessen.de/<YourTeam>/<YourProject>/settings/ci_cd%%)
 +  - sudo gitlab-runner register (it will ask you for url, token, executor, etc. )