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