Changed to Docker-in-Docker

This commit is contained in:
WilliamMiceli
2019-03-15 09:58:42 -04:00
parent d7ecb40d60
commit 83a9d3ff35
2 changed files with 10 additions and 4 deletions

View File

@@ -1 +1,5 @@
# GitLab Runner
# GitLab Runner
## Technical Notes
* Using "Docker-in-Docker" type of configuration, [Described Here](https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-executor)

View File

@@ -13,7 +13,8 @@ services:
- --executor
- "docker"
- --docker-image
- alpine:latest
- docker:stable
- --docker-privileged
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
- --description
- ${GITLAB_RUNNER_DESCRIPTION}
@@ -36,7 +37,7 @@ services:
{{- end}}
traefik.enable: false
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /var/run/docker.sock:/var/run/docker.sock
- /RancherCattle/${DATA_DIR}:/etc/gitlab-runner
gitlab-runner:
image: gitlab/gitlab-runner:alpine
@@ -53,7 +54,8 @@ services:
{{- end}}
io.rancher.sidekicks: gitlab-runner-config
traefik.enable: false
privileged: true # Required for Docker-in-Docker
restart: on-failure
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /var/run/docker.sock:/var/run/docker.sock
- /RancherCattle/${DATA_DIR}:/etc/gitlab-runner