1. 程式人生 > 其它 >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'