win10下hyper-v+centos7+gitlab+asp

2019-01-10  本文已影响0人  kevin560

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

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

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

root账号登陆gitlabserver上的网站

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

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

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

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

上一篇下一篇

猜你喜欢

热点阅读