1、安装gitlab Runner
本次演示为centos 7.5环境,请各位按照自己环境调整
1)在线安装
#安装官方镜像源 [root@k8s-node02 ~]# curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash #yum 安装gitlab Runner [root@k8s-node02 ~]# yum install gitlab-runner -y |
2)离线安装
- gitlab Runner下载地址:https://packages.gitlab.com/runner/gitlab-runner
-
服务器创建安装包位置
[root@k8s-node02 gitlab-runner]# mkdir -p /tools
- 下载gitlab-runner
[root@k8s-node02 gitlab-runner]# cd /tools/ [root@k8s-node02 tools]# ll total 0 [root@k8s-node02 tools]# wget https://packages.gitlab.com/runner/gitlab-runner/packages/fedora/29/gitlab-runner-12.6.0-1.x86_64.rpm/download.rpm [root@k8s-node02 tools]# ll total 49860 -rw-r--r-- 1 root root 51052604 Jan 19 22:45 gitlab-runner-12.6.0-1.x86_64.rpm
-
安装gitlab runner
#安装git [root@k8s-node02 tools]# yum install git -y #rpm离线安装gitlab runner,需要依赖git,所以请提前安装git [root@k8s-node02 tools]# rpm -ivh gitlab-runner-12.6.0-1.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:gitlab-runner-12.6.0-1