美文网首页
win10下hyper-v+centos7+gitlab+asp

win10下hyper-v+centos7+gitlab+asp

作者: kevin560 | 来源:发表于2019-01-10 16:02 被阅读0次

    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+持续集成(七)

    相关文章

      网友评论

          本文标题:win10下hyper-v+centos7+gitlab+asp

          本文链接:https://www.haomeiwen.com/subject/rdgorqtx.html