From d33945780dcc1287ac221cbe97f281053673afa6 Mon Sep 17 00:00:00 2001 From: Antoine Legrand Date: Mon, 13 Feb 2017 15:04:35 +0100 Subject: [PATCH] Document gitlab-runner.sh --- scripts/gitlab-runner.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/gitlab-runner.sh diff --git a/scripts/gitlab-runner.sh b/scripts/gitlab-runner.sh new file mode 100644 index 000000000..c05ee7ea1 --- /dev/null +++ b/scripts/gitlab-runner.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +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 + +# +#/srv/gitlab-runner/config# cat config.toml +#concurrent = 10 +#check_interval = 1 + +#[[runners]] +# name = "2edf3d71fe19" +# url = "https://gitlab.com" +# token = "THE TOKEN-CHANGEME" +# executor = "docker" +# [runners.docker] +# tls_verify = false +# image = "docker:latest" +# privileged = true +# disable_cache = false +# cache_dir = "/srv/gitlab-runner/cache" +# volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/srv/gitlab-runner/cache:/cache:rw"] +# [runners.cache]