win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)

gitlab服务器装好了,接下来装gitlab-ci服务器


win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第1张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第2张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第3张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第4张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第5张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第6张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第7张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第8张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第9张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第10张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第11张图片

上面的界面可以关了,打开putty,没有安装的自己安装下


win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第12张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第13张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第14张图片

登陆成功,接下来开始安装gitlab-runner

root账号登陆gitlabserver上的网站


win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第15张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第16张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第17张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第18张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第19张图片

1.Simply download one of the binaries for your system:

# Linux x86-64 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64

# Linux x86 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386

# Linux arm sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm

2.Give it permissions to execute:

sudo chmod+x /usr/local/bin/gitlab-runner

3.Optionally, if you want to use Docker, install Docker with:   

curl -sSL https://get.docker.com/ | sh

4.Create a GitLab CI user:

sudo useradd--comment'GitLab Runner'--create-homegitlab-runner--shell/bin/bash

5.Install and run as service:

gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner

gitlab-runner start

开始注册runner  我这root权限 前面不需要加sudo

win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第20张图片

注册好了,刷新一下gitlab页面会看到下面多了个runner


win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第21张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第22张图片
win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六)_第23张图片

win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(五)

win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(七)

你可能感兴趣的:(win10下hyper-v+centos7+gitlab+asp.net core+docker+docker-compose+持续集成(六))