use question and answer to set public port for gocd server

This commit is contained in:
xushanchuan 2016-05-17 10:36:21 +08:00
parent 6f6be283f5
commit b0640ff514
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,8 @@ gocd-server:
environment: environment:
- SERVER_MEM=${mem_initial}m - SERVER_MEM=${mem_initial}m
- SERVER_MAX_MEM=${mem_max}m - SERVER_MAX_MEM=${mem_max}m
ports:
- ${public_port}:8153
labels: labels:
io.rancher.container.hostname_override: container_name io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: gocd-volume io.rancher.sidekicks: gocd-volume

View File

@ -7,6 +7,12 @@
minimum_rancher_version: v0.59.0 minimum_rancher_version: v0.59.0
uuid: goserver-0 uuid: goserver-0
questions: questions:
- variable: public_port
description: "public port to access the gocd server"
label: "Public Port"
required: true
default: "8153"
type: "int"
- variable: "mem_initial" - variable: "mem_initial"
description: "Initial java memory in Mb" description: "Initial java memory in Mb"
label: "Initial memory:" label: "Initial memory:"
@ -25,7 +31,7 @@
required: true required: true
default: "/var/lib/docker/go-server-work" default: "/var/lib/docker/go-server-work"
type: "string" type: "string"
- variable: "volume_driver" - variable: "volume_driver"
label: "Driver volume:" label: "Driver volume:"
description: | description: |
Choose the volume driver to use. Choose the volume driver to use.