Gitlab-runner without Docker

旧时模样 提交于 2021-01-27 12:54:17

问题


I've installed gitlab-runner on ubuntu 16.04

I've set Executor=shell

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

dev:
 script:
 - pwd

I am not willing to user Docker for the moment

Why is the job's log is mentioning docker ?

Using Docker executor with image ruby:2.5 ...

Pulling docker image ruby:2.5 ...

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

Why is it mentioning a path that does not exist when executing pwd ?

$ pwd
/builds/my_gitlab_name/my_project_name

回答1:


@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

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



来源:https://stackoverflow.com/questions/53304594/gitlab-runner-without-docker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!