1. 程式人生 > >GItlab作CI/CD時,想快點,有啥招?

GItlab作CI/CD時,想快點,有啥招?

tom 遠程 分享 nexus not docker dock tlab vol

如果希望.m2文件有存緩,或是不要每次從dockerhub上找鏡像(有的是本地鏡像,遠程沒有的)

那麽,gitlab-runner的config.toml初步優化文件如下:

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "cl-runner"
  url = "http://xxx.com:8888/"
  token = "J345UYIU34535B"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "maven:3-jdk-8-xxx"
privileged = false disable_entrypoint_overwrite = false oom_kill_disable = false disable_cache = false volumes = ["/cache","/root/m2:/root/.m2"] pull_policy = "if-not-present" shm_size = 0 [runners.cache] [runners.cache.s3] [runners.cache.gcs]

另外,就是nexus下載好像速度不理解,寬帶是夠的。

這應該要從NEXUS本身去調整,

比如,public的順序。

這個問題,我也還在解決中技術分享圖片

GItlab作CI/CD時,想快點,有啥招?