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
+18
View File
@@ -0,0 +1,18 @@
# Gocd server (Experimental)
### Info:
This template creates and configure a gocd server instance.
You can add a local or a convoy-gluster volume to retain gocd-server data.
### Usage:
Select gocd-server from catalog.
Enter the mem parameters, volume and volume driver.
Click deploy.
gocd-server can now be accessed over the Rancher network.
@@ -0,0 +1,23 @@
gocd-server:
labels:
gocd.role: server
tty: true
image: rawmind/rancher-goserver:16.2.1-3
volumes_from:
- gocd-volume
environment:
- SERVER_MEM=${mem_initial}m
- SERVER_MAX_MEM=${mem_max}m
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: gocd-volume
gocd-volume:
net: none
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
volumes:
- ${volume_work}:/opt/go-server/work
volume_driver: ${volume_driver}
entrypoint: /bin/true
image: busybox
@@ -0,0 +1,47 @@
.catalog:
name: gocd-server
version: 16.2.1-rancher1
description: |
(Experimental) Gocd server.
maintainer: "Raul Sanchez <rawmind@gmail.com>"
minimum_rancher_version: v0.59.0
uuid: goserver-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: "volume_work"
description: "Work volume to save goserver data"
label: "Work volume:"
required: true
default: "/var/lib/docker/go-server-work"
type: "string"
- variable: "volume_driver"
label: "Driver volume:"
description: |
Choose the volume driver to use.
default: local
required: true
type: enum
options:
- local
- convoy-gluster
gocd-server:
scale: 1
retain_ip: true
health_check:
port: 8153
interval: 5000
unhealthy_threshold: 5
request_line: GET /go/agents HTTP/1.0
healthy_threshold: 2
response_timeout: 5000
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

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