Commit 091351d5 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Making some font changes, to add a box for code portion of the script

parent a2728284
Pipeline #500 passed with stages
in 2 seconds
......@@ -8,17 +8,25 @@ For more detailed instructions on setting up a VM, follow these [instructions](h
## Install Git runner on the newly created VM:
1) Download the runner
```sudo curl -L --output /bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64```
```
sudo curl -L --output /bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
```
2) Give execute permission to the runner.
```sudo chmod +x /bin/gitlab-runner```
```
sudo chmod +x /bin/gitlab-runner
```
3) Create a GitLab CI user.
```sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash```
```
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
```
4) Install and run as service.
```sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start```
```
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start
```
## Modify your VM so that it has connection to Gitlab instance, and OpenStack platform:
......@@ -55,28 +63,39 @@ sudo pip install ansible
## Register the runner:
1) Run the following command:
```sudo gitlab-runner register```
```
sudo gitlab-runner register
```
2) Enter your Gitlab instance URL:
```Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
https://gitlab.rc.uab.edu/```
```
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
https://gitlab.rc.uab.edu/
```
3) Enter the token, you obtained in the Gitlab interface:
```Please enter the gitlab-ci token for this runner
xxx```
```
Please enter the gitlab-ci token for this runner
xxx
```
4) Gitlab description (can be changed later in the UI):
```Please enter the gitlab-ci description for this runner
[hostname] my-runner```
```
Please enter the gitlab-ci description for this runner
[hostname] my-runner
```
5) Enetr the tags for the runner (leave it blank):
```Please enter the gitlab-ci tags for this runner (comma separated):
5) Enter the tags for the runner (leave it blank):
```
Please enter the gitlab-ci tags for this runner (comma separated):
```
6) Enetr the executor (choose ssh):
```Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
ssh```
```
Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
ssh
```
## Add packer and openstack on the runner VM:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment