Gitlab Runners to be deployed on Docker Swarm as Replicas, with auto-register
2.0K
Docker Gitlab Runners to be deployed on Docker Swarm as Replicas, with auto-register
FROM gitlab/gitlab-runner:latest
LABEL maintainer="Ioannis Dritsas <[email protected]>"
COPY entrypoint_custom.sh /
RUN chmod a+x /entrypoint_custom.sh
ENTRYPOINT ["/usr/bin/dumb-init", "/entrypoint_custom.sh"]
CMD ["run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]
All variables can be referenced in Official Docker Runner Registration Options and/or running command gitlab-runner register -h
GITLAB_URL: GitLab instance URL, can also be deployed as a Swarm secret target: gitlab_url. Default value: https://gitlab.com/PROJECT_REGISTRATION_TOKEN: token you obtained to register the Runner, can also be deployed as a Swarm secret target: project_registration_token.RUNNER_EXECUTOR: Runner executor - Valid values: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell. Default dockerDOCKER_DEFAULT_IMAGE: If you chose Docker as your executor, you’ll be asked for the default image to be used for projects that do not define one. Default: docker:latestRUNNER_DESCRIPTION: Enter a description for the Runner.TAG_LIST: Gitlab-Ci tags for this runner - comma separated. Default: dockerRUN_UNTAGGED: Register to run untagged builds. Default: trueLOCKED: Lock Runner for current project. Default: falseDOCKER_PRIVILEGED: Give extended privileges to container. Default: trueACCESS_LEVEL: Set access_level of the runner to not_protected or ref_protected. Default: not_protectedDOCKER_VOLUMES_LIST: Bind-mount one or more volumes and create it/them if doesn't exist prior to mounting - comma separated. Example: /var/run/docker.sock:/var/run/docker.sock (binds to default docker socket in the host)Do not forget to also add the volumes specified in
DOCKER_VOLUMES_LIST, to thevolumessection in compose file.
Content type
Image
Digest
Size
150.3 MB
Last updated
about 7 years ago
docker pull dreampathsprojekt/gitlab-runner-swarm