其他分享
首页 > 其他分享> > gitlab-ci && runner use docker

gitlab-ci && runner use docker

作者:互联网

点击查看代码
cat config.toml 
concurrent = 16
check_interval = 0


[session_server]
  session_timeout = 1800


[[runners]]
  name = "woshishi"
  url = "https://gitlab.lovexlq.com"
  token = "B2dAaz7yuixscYX-q_y"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "hub.lovexlq.com/devops/alpine:v3.8"
    privileged = true
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    pull_policy = "always"
    shm_size = 0
  [runners.cache]
    Type = "s3"
    Path = "gitlab"
    Shared = true
    [runners.cache.s3]
      ServerAddress = "10.111.131.215:9000"
      AccessKey = "minio"
      SecretKey = "miniominio"
      BucketName = "test-backend-runner"
      BucketLocation = "cn-north-1"
      Insecure = true

[root@cn-hz-h-test-devops-test00 gitlab-runner]# cat docker-compose.yml 
runner:
  image: 'hub.lovexlq.com/devops/gitlab-runner:alpine-v11.11.2'
  container_name: 'gitlab-runner'
  restart: always
  volumes:
    - './config.toml:/etc/gitlab-runner/config.toml'
    - '/var/run/docker.sock:/var/run/docker.sock'

标签:ci,false,runner,gitlab,devops,docker,runners
来源: https://www.cnblogs.com/leleyao/p/16086134.html