You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
731 B

  1. #!/bin/sh
  2. docker run -d --name gitlab-runner --restart always -v /srv/gitlab-runner/cache:/srv/gitlab-runner/cache -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:v1.10.0
  3. #
  4. #/srv/gitlab-runner/config# cat config.toml
  5. #concurrent = 10
  6. #check_interval = 1
  7. #[[runners]]
  8. # name = "2edf3d71fe19"
  9. # url = "https://gitlab.com"
  10. # token = "THE TOKEN-CHANGEME"
  11. # executor = "docker"
  12. # [runners.docker]
  13. # tls_verify = false
  14. # image = "docker:latest"
  15. # privileged = true
  16. # disable_cache = false
  17. # cache_dir = "/srv/gitlab-runner/cache"
  18. # volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/srv/gitlab-runner/cache:/cache:rw"]
  19. # [runners.cache]