Changed to Docker-in-Docker
This commit is contained in:
@@ -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)
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user