如果希望.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的顺序。
这个问题,我也还在解决中