Added gocd server and agent to the catalog

This commit is contained in:
Raul Sanchez
2016-03-16 18:02:45 +01:00
parent bda94b34b3
commit a19fe83ea4
10 changed files with 180 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Gocd agent (Experimental)
### Info:
This template creates and configure a gocd server agent.
### Usage:
Select gocd-agent from catalog.
Enter the mem parameters, gocd-server stack/service and port.
Click deploy.
gocd-agent can now be accessed over the Rancher network.
+16
View File
@@ -0,0 +1,16 @@
gocd-agent:
labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
gocd.role: agent
tty: true
image: rawmind/rancher-goagent:16.2.1-1
external_links:
- ${goserver_ip}:gocd-server.rancher.internal
environment:
- AGENT_MEM=${mem_initial}m
- AGENT_MAX_MEM=${mem_max}m
- GO_SERVER=gocd-server.rancher.internal
- GO_SERVER_PORT=${goserver_port}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@@ -0,0 +1,43 @@
.catalog:
name: gocd-agent
version: 16.2.1-rancher1
description: |
(Experimental) Gocd agent.
maintainer: "Raul Sanchez <rawmind@gmail.com>"
minimum_rancher_version: v0.59.0
uuid: goagent-0
questions:
- variable: "mem_initial"
description: "Initial java memory in Mb"
label: "Initial memory:"
required: true
default: 512
type: "int"
- variable: "mem_max"
description: "Max java memory in Mb"
label: "Max memory:"
required: true
default: 1024
type: "int"
- variable: "goserver_ip"
description: |
Choose the gocd service to connect.
label: "Gocd server stack/service"
default: "gocd-sever/gocd-server"
required: true
type: "service"
- variable: "goserver_port"
description: "Gocd server port"
label: "Goserver port:"
required: true
default: 8153
type: "int"
- variable: "scale"
description: "Gocd agent instances"
label: "Instances:"
required: true
default: 1
type: "int"
gocd-agent:
scale: ${scale}
retain_ip: true
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+8
View File
@@ -0,0 +1,8 @@
name: gocd-agent
description: |
(Experimental) Gocd agent
version: 16.2.1-rancher1
category: "Continuous Integration"
maintainer: "Raul Sanchez <rawmind@gmail.com>"
minimum_rancher_version: v0.59.0
license: