Added ability to add extra hosts for the runners

This commit is contained in:
William Miceli
2019-05-04 14:53:19 -04:00
parent 8ae12b91d6
commit 6d29aa85c0
2 changed files with 15 additions and 3 deletions

View File

@@ -12,9 +12,6 @@ services:
- ${GITLAB_TOKEN}
- --executor
- "docker"
- --docker-image
- docker:latest
- --docker-privileged
{{- if .Values.GITLAB_RUNNER_DESCRIPTION}}
- --description
- ${GITLAB_RUNNER_DESCRIPTION}
@@ -24,6 +21,13 @@ services:
- ${GITLAB_TAGS}
{{- end}}
- --locked=false
- --docker-image
- docker:latest
- --docker-privileged
{{- if .Values.GITLAB_IP}}
- --docker-extra-hosts
- ["gitlab:${GITLAB_IP}"]
{{- end}}
{{- if .Values.GITLAB_LINK}}
external_links:
- ${GITLAB_LINK}{{- if .Values.GITLAB_LINK_ALIAS}}:${GITLAB_LINK_ALIAS}{{- end}}

View File

@@ -66,6 +66,14 @@ catalog:
required: false
type: string
- variable: "GITLAB_IP"
label: "Local GitLab IP"
description: |
(Optional) The local IP address of the GitLab service.
# default: ""
required: false
type: string
- variable: "DATA_DIR"
label: "Data Directory"
description: |