gpt4 book ai didi

docker - (gitlab-runner) Docker 在 0 秒后完成

转载 作者:行者123 更新时间:2023-12-02 18:03:33 26 4
gpt4 key购买 nike

这是日志。

Running with gitlab-runner 13.0.1 (xxx)
on x-runner xxx
Preparing the "docker" executor
Job succeeded

Job succeeded 消息在 Preparing the "docker"executor 消息后 0 秒出现。

脚本是 echo hellonpm ci


更新:当我执行 docker exec -it gitlab-runner gitlab-runner --debug run 时,出现错误 panic: runtime error: invalid启动管道后的内存地址或零指针取消引用。我该如何解决这个问题?


更新:

版本

gitlab: 12.9.0
gitlab-runner: 13.0.1
docker: 19.03.11, build 42e35e61f3

配置

concurrent = 1
check_interval = 0

[session_server]
session_timeout = 1800

[[runners]]
name = "nuc-runner"
url = "https://gitlab.x.y/"
token = "xyz"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]

更新:

.gitlab-cli.yml

# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options

stages:
- install
- build
- test
- clean

build:
stage: build
script: npm run build

install:
stage: install
script: npm ci

test:
stage: test
script: npm run test

clean:
stage: clean
script: npm run clean


更新

当我打字时

root@xxxxxxxxxxxx:/# gitlab-runner status

标准输出

Runtime platform                                    arch=amd64 os=linux pid=365 revision=21cb397c version=13.0.1
gitlab-runner: Service is not running.

最佳答案

事实证明不是以任何方式导致错误的配置。我没有正确安装运行者。另一个错误是 gitlab-runner 服务没有像提到的那样启动 here这是通过 apt 安装 gitlab-runner 引起的。

如何解决installed with apt问题。

$ sudo su
root:~# cd /var/lib
root:/var/lib# mkdir gitlab-runner
root:/var/lib# chown gitlab-runner:gitlab-runner gitlab-runner/
root:/var/lib# service gitlab-runner restart

如何解决安装不正确的问题。

$ gitlab-runner install -u root
$ sudo reboot

关于docker - (gitlab-runner) Docker 在 0 秒后完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62245444/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com