最近在使用 docker-windows 發現問題好像滿多的,站長目前使用的 GitLab Runner 版本是 12.7.1,以下是我遇到的錯誤。
GitLab Runner 錯誤
Missing gitlab-runner-helper. Creating cache is disabled.
Missing gitlab-runner-helper. Uploading artifacts is disabled.
如果出現以上這兩個問題,目前判斷是因為 gitlab-runner-helper 版本卡住造成的,所以基本上要去 config.toml 修改一下設定檔,就可以解決這個問題了
config.toml 設定檔修正
concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = "gitlab-ci-win" url = "https://gitlab.com/" token = "xyz" executor = "docker-windows" [runners.custom_build_dir] [runners.docker] tls_verify = false image = "mcr.microsoft.com/windows/servercore:ltsc2019" privileged = false disable_entrypoint_overwrite = false oom_kill_disable = false disable_cache = false volumes = ["c:\\cache"] shm_size = 0 helper_image = "gitlab/gitlab-runner-helper:x86_64-31e27ad8-servercore1809" [runners.cache] [runners.cache.s3] [runners.cache.gcs]
在這邊我目前把設定檔指定成 gitlab/gitlab-runner-helper:x86_64-31e27ad8-servercore1809 就可以正常使用了,大家如果也遇到這個問題,可以去試試看!
《AWS CDK 完全學習手冊:打造雲端基礎架構程式碼 IaC》
第 12 屆 iT 邦幫忙鐵人賽 DevOps 組冠的《用 CDK 定 義 AWS 架構》
第 11 屆 iT 邦幫忙鐵人賽《LINE bot 好好玩 30 天玩轉 LINE API》
一個熱愛分享的雲端工程師!