Merge pull request #541 from mittz/add-registry-feature-gitlab-catalog
Add registry feature in GitLab catalog
This commit is contained in:
commit
1c76f1439e
@ -1,27 +1,26 @@
|
|||||||
gitlab-server:
|
version: '2'
|
||||||
ports:
|
volumes:
|
||||||
- ${ssh_port}:22/tcp
|
gitlab-app-data:
|
||||||
- ${http_port}:80/tcp
|
driver: ${volumedriver}
|
||||||
- ${https_port}:443/tcp
|
gitlab-log-data:
|
||||||
labels:
|
driver: ${volumedriver}
|
||||||
io.rancher.sidekicks: gitlab-data
|
gitlab-conf-files:
|
||||||
hostname: ${gitlab_hostname}
|
driver: ${volumedriver}
|
||||||
image: gitlab/gitlab-ce:latest
|
|
||||||
volumes_from:
|
|
||||||
- gitlab-data
|
|
||||||
environment:
|
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
|
||||||
external_url '${gitlab_omnipus_prefix}${gitlab_hostname}'
|
|
||||||
|
|
||||||
gitlab-data:
|
|
||||||
labels:
|
|
||||||
io.rancher.container.start_once: 'true'
|
|
||||||
entrypoint:
|
|
||||||
- /bin/true
|
|
||||||
hostname: gitdata
|
|
||||||
image: gitlab/gitlab-ce:latest
|
|
||||||
volumes:
|
|
||||||
- /etc/gitlab
|
|
||||||
- /var/log/gitlab
|
|
||||||
- /var/opt/gitlab
|
|
||||||
|
|
||||||
|
services:
|
||||||
|
gitlab-server:
|
||||||
|
ports:
|
||||||
|
- ${ssh_port}:22/tcp
|
||||||
|
- ${http_port}:80/tcp
|
||||||
|
- ${https_port}:443/tcp
|
||||||
|
labels:
|
||||||
|
io.rancher.container.hostname_override: container_name
|
||||||
|
image: gitlab/gitlab-ce:9.3.3-ce.0
|
||||||
|
volumes:
|
||||||
|
- gitlab-app-data:/var/opt/gitlab
|
||||||
|
- gitlab-log-data:/var/log/gitlab
|
||||||
|
- gitlab-conf-files:/etc/gitlab
|
||||||
|
environment:
|
||||||
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
external_url '${gitlab_omnipus_prefix}${gitlab_hostname}'
|
||||||
|
registry_external_url '${gitlab_omnipus_prefix}${registry_gitlab_hostname}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.catalog:
|
.catalog:
|
||||||
name: Gitlab Community
|
name: Gitlab Community
|
||||||
version: latest
|
version: 9.3.3-ce.0
|
||||||
description: |
|
description: |
|
||||||
Gitlab CE is a free GitHub alternative
|
Gitlab CE is a free GitHub alternative
|
||||||
minimum_rancher_version: v0.56.0
|
minimum_rancher_version: v0.56.0
|
||||||
@ -13,34 +13,49 @@
|
|||||||
required: true
|
required: true
|
||||||
default: "git.example.com"
|
default: "git.example.com"
|
||||||
type: "string"
|
type: "string"
|
||||||
|
- variable: "registry_gitlab_hostname"
|
||||||
|
description: "Registry Gitlab hostname (without uri scheme http:// or https://)"
|
||||||
|
label: "Registry hostname:"
|
||||||
|
required: true
|
||||||
|
default: "registry.example.com"
|
||||||
|
type: "string"
|
||||||
- variable: "gitlab_omnipus_prefix"
|
- variable: "gitlab_omnipus_prefix"
|
||||||
label: "Gitlab external_url prefix:"
|
label: "Gitlab external_url prefix:"
|
||||||
description: |
|
description: |
|
||||||
This is needed for the docker-compose file to set the correct external_url
|
This is needed for the docker-compose file to set the correct external_url
|
||||||
default: 'https://'
|
default: 'http://'
|
||||||
required: true
|
required: true
|
||||||
type: "string"
|
type: "enum"
|
||||||
options:
|
options:
|
||||||
- 'https://'
|
|
||||||
- 'http://'
|
- 'http://'
|
||||||
|
- 'https://'
|
||||||
- variable: "http_port"
|
- variable: "http_port"
|
||||||
description: "HTTP port to expose on host. Will be used to bind TCP"
|
description: "HTTP port to expose on host. Will be used to bind TCP"
|
||||||
label: "HTTP port:"
|
label: "HTTP port:"
|
||||||
required: true
|
required: true
|
||||||
default: 80
|
default: 80
|
||||||
type: "string"
|
type: "int"
|
||||||
- variable: "https_port"
|
- variable: "https_port"
|
||||||
description: "HTTPS port to expose on host. Will be used to bind TCP"
|
description: "HTTPS port to expose on host. Will be used to bind TCP"
|
||||||
label: "HTTPS port:"
|
label: "HTTPS port:"
|
||||||
required: true
|
required: true
|
||||||
default: 443
|
default: 443
|
||||||
type: "string"
|
type: "int"
|
||||||
- variable: "ssh_port"
|
- variable: "ssh_port"
|
||||||
description: "SSH port to expose on host. Will be used to bind TCP"
|
description: "SSH port to expose on host. Will be used to bind TCP"
|
||||||
label: "SSH port:"
|
label: "SSH port:"
|
||||||
required: true
|
required: true
|
||||||
default: 22
|
default: 22
|
||||||
type: "string"
|
type: "int"
|
||||||
|
- variable: "volumedriver"
|
||||||
|
description: "Choose the Volume Driver being used.(Option: local or rancher-nfs)"
|
||||||
|
label: "Volume Driver:"
|
||||||
|
required: true
|
||||||
|
default: local
|
||||||
|
type: "enum"
|
||||||
|
options:
|
||||||
|
- local
|
||||||
|
- rancher-nfs
|
||||||
|
|
||||||
gitlab-server:
|
gitlab-server:
|
||||||
scale: 1
|
scale: 1
|
||||||
@ -52,8 +67,3 @@ gitlab-server:
|
|||||||
strategy: recreate
|
strategy: recreate
|
||||||
response_timeout: 2000
|
response_timeout: 2000
|
||||||
healthy_threshold: 2
|
healthy_threshold: 2
|
||||||
|
|
||||||
gitlab-data:
|
|
||||||
scale: 1
|
|
||||||
retain_ip: true
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: Gitlab Community
|
name: Gitlab Community
|
||||||
description: |
|
description: |
|
||||||
Gitlab CE is a free GitHub alternative
|
Gitlab CE is a free GitHub alternative
|
||||||
version: latest
|
version: 9.3.3-ce.0
|
||||||
category: Versioning
|
category: Versioning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user