没有Docker的Gitlab运行器 [英] Gitlab-runner without Docker

查看:62
本文介绍了没有Docker的Gitlab运行器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在ubuntu 16.04上安装了gitlab-runner

I've installed gitlab-runner on ubuntu 16.04

我设置了Executor = shell

I've set Executor=shell

我的项目通过一个非常简单的yaml配置文件托管在gitlab.com上:

My project is hosted on gitlab.com with a very simple yaml config file :

dev:
 script:
 - pwd

暂时不不愿意使用Docker

I am not willing to user Docker for the moment

为什么作业日志中提到docker?

将Docker executor与image ruby​​:2.5 ...一起使用

Using Docker executor with image ruby:2.5 ...

拉起docker图像ruby:2.5 ...

Pulling docker image ruby:2.5 ...

使用docker image ... for ruby​​:2.5 ...

Using docker image ... for ruby:2.5 ...

为什么在执行pwd时提到了一条不存在的路径?

$ pwd
/builds/my_gitlab_name/my_project_name

推荐答案

@Sam Hartman是对的,我的跑步者不是负责这份工作日志的人.

@Sam Hartman is right my runner was not the one responsible for the job's log.

我必须停用共享运行程序才能看到运行程序.

I had to deactivate Shared Runners in order to see my runner running.

如果您需要这样做,只需转到

If you need to do this simply go to

设置-> CI/CD->展开Runners->并在右窗格中为该项目的"Disable Shared Runner"添加共享的运行器

Settings -> CI / CD -> expand Runners -> and on the right pane names Shared runners clic on "Disable Shared Runner" for this project

这篇关于没有Docker的Gitlab运行器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆