Updated gogs package. Solve issue #28
This commit is contained in:
parent
cc32775035
commit
cdabb0f8f4
@ -1,14 +0,0 @@
|
|||||||
gogs:
|
|
||||||
image: gogs/gogs:latest
|
|
||||||
ports:
|
|
||||||
- ${http_port}:3000
|
|
||||||
- ${ssh_port}:22
|
|
||||||
links:
|
|
||||||
- mysql:db
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
image: mysql:latest
|
|
||||||
ports:
|
|
||||||
- ${public_port}:3306
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: ${mysql_password}
|
|
35
templates/gogs/0/docker-compose.yml.tpl
Normal file
35
templates/gogs/0/docker-compose.yml.tpl
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
gogs:
|
||||||
|
image: gogs/gogs:0.11.19
|
||||||
|
volumes:
|
||||||
|
- gogs-data:/data/gogs
|
||||||
|
{{- if ne .Values.db_link ""}}
|
||||||
|
external_links:
|
||||||
|
- ${db_link}:db
|
||||||
|
{{- else}}
|
||||||
|
links:
|
||||||
|
- db:db
|
||||||
|
db:
|
||||||
|
image: mysql:5.5
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: ${mysql_password}
|
||||||
|
MYSQL_USER: ${mysql_user}
|
||||||
|
MYSQL_PASSWORD: ${mysql_password}
|
||||||
|
MYSQL_DATABASE: ${mysql_db}
|
||||||
|
volumes:
|
||||||
|
- gogs-db:/var/lib/mysql
|
||||||
|
{{- end}}
|
||||||
|
lb:
|
||||||
|
image: rancher/lb-service-haproxy:v0.6.4
|
||||||
|
ports:
|
||||||
|
- ${http_port}:${http_port}/tcp
|
||||||
|
- ${ssh_port}:${ssh_port}/tcp
|
||||||
|
volumes:
|
||||||
|
gogs-data:
|
||||||
|
driver: ${volume_driver}
|
||||||
|
{{- if eq .Values.db_link ""}}
|
||||||
|
gogs-db:
|
||||||
|
driver: ${volume_driver}
|
||||||
|
{{- end}}
|
||||||
|
|
@ -1,33 +1,94 @@
|
|||||||
.catalog:
|
version: '2'
|
||||||
|
catalog:
|
||||||
name: "Gogs"
|
name: "Gogs"
|
||||||
version: "v0.8.43"
|
version: "v0.11.19"
|
||||||
description: "A painless self-hosted Git service"
|
description: "A painless self-hosted Git service"
|
||||||
uuid: gogs-0
|
uuid: gogs-0
|
||||||
minimum_rancher_version: v0.51.0
|
minimum_rancher_version: v0.51.0
|
||||||
questions:
|
questions:
|
||||||
- variable: public_port
|
|
||||||
description: "public port to access the mysql server"
|
|
||||||
label: "Public Port"
|
|
||||||
required: true
|
|
||||||
default: "3306"
|
|
||||||
type: "int"
|
|
||||||
- variable: http_port
|
- variable: http_port
|
||||||
description: "http port to access gogs webui"
|
description: "http port to access gogs webui"
|
||||||
label: "Http Port"
|
label: "Http Port"
|
||||||
required: true
|
required: true
|
||||||
default: "10080"
|
default: "8080"
|
||||||
type: "int"
|
type: "int"
|
||||||
- variable: ssh_port
|
- variable: ssh_port
|
||||||
description: "ssh port to access gogs cli"
|
description: "ssh port to access gogs cli"
|
||||||
label: "SSH Port"
|
label: "SSH Port"
|
||||||
required: true
|
required: true
|
||||||
default: "222"
|
default: "2222"
|
||||||
type: "int"
|
type: "int"
|
||||||
|
- variable: "volume_driver"
|
||||||
|
description: "Volume driver to associate with this service"
|
||||||
|
label: "Volume Driver"
|
||||||
|
required: true
|
||||||
|
default: "local"
|
||||||
|
type: enum
|
||||||
|
options: # List of options if using type of `enum`
|
||||||
|
- local
|
||||||
|
- rancher-nfs
|
||||||
|
- rancher-efs
|
||||||
|
- rancher-ebs
|
||||||
|
- variable: "db_link"
|
||||||
|
description: |
|
||||||
|
DB external service link cluster.
|
||||||
|
label: "External db service"
|
||||||
|
default: ""
|
||||||
|
required: false
|
||||||
|
type: "service"
|
||||||
|
- variable: mysql_db
|
||||||
|
description: "mysql db"
|
||||||
|
label: "Mysql db"
|
||||||
|
required: true
|
||||||
|
default: "gogs"
|
||||||
|
type: "string"
|
||||||
|
- variable: mysql_user
|
||||||
|
description: "mysql user"
|
||||||
|
label: "Mysql User"
|
||||||
|
required: true
|
||||||
|
default: "gogs"
|
||||||
|
type: "string"
|
||||||
- variable: mysql_password
|
- variable: mysql_password
|
||||||
description: "mysql root password"
|
description: "mysql root password"
|
||||||
label: "Mysql Password"
|
label: "Mysql Password"
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: "default_pass"
|
||||||
type: "password"
|
type: "password"
|
||||||
|
services:
|
||||||
gogs:
|
gogs:
|
||||||
|
scale: 1
|
||||||
|
retain_ip: true
|
||||||
|
health_check:
|
||||||
|
response_timeout: 2000
|
||||||
|
healthy_threshold: 2
|
||||||
|
port: 3000
|
||||||
|
unhealthy_threshold: 3
|
||||||
|
initializing_timeout: 300000
|
||||||
|
interval: 2000
|
||||||
|
strategy: recreate
|
||||||
|
request_line: GET "/" "HTTP/1.0"
|
||||||
|
reinitializing_timeout: 120000
|
||||||
|
lb:
|
||||||
|
scale: 1
|
||||||
|
start_on_create: true
|
||||||
|
lb_config:
|
||||||
|
certs: []
|
||||||
|
port_rules:
|
||||||
|
- priority: 1
|
||||||
|
protocol: http
|
||||||
|
service: gogs
|
||||||
|
source_port: ${http_port}
|
||||||
|
target_port: 3000
|
||||||
|
- priority: 2
|
||||||
|
protocol: tcp
|
||||||
|
service: gogs
|
||||||
|
source_port: ${ssh_port}
|
||||||
|
target_port: 22
|
||||||
|
health_check:
|
||||||
|
response_timeout: 2000
|
||||||
|
healthy_threshold: 2
|
||||||
|
port: 42
|
||||||
|
unhealthy_threshold: 3
|
||||||
|
initializing_timeout: 60000
|
||||||
|
interval: 2000
|
||||||
|
reinitializing_timeout: 60000
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: Gogs
|
name: Gogs
|
||||||
description: |
|
description: |
|
||||||
A painless self-hosted Git service
|
A painless self-hosted Git service
|
||||||
version: v0.8.43
|
version: v0.11.19
|
||||||
category: Git
|
category: Git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user