Add Plone to Rancher Community Catalog (#312)

* Add Plone

* Add port variable

* Add host affinity variable

* Add required fields

* Spread accross multiple nodes

* Typo fix

* Change category to CMS
This commit is contained in:
Alin Voinea 2016-11-24 18:25:26 +02:00 committed by Hussein Galal
parent 4552eb0569
commit 9536763606
6 changed files with 193 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Plone
This templates deploys a Plone server with all its companions (Zeoserver) to be able to run Plone on top of you Rancher infrastructure
# How to use it ?
Just create and launch the stack.
After that you can login with the regular user/password combination admin/admin.

View File

@ -0,0 +1,33 @@
zeoserver:
image: plone:${version}
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true
io.rancher.community.plone: "true"
volumes:
- ${volume_name}:/data
volume_driver: ${volume_driver}
command: ["zeoserver"]
plone:
image: plone:${version}
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true
io.rancher.community.plone: "true"
links:
- zeoserver:zeoserver
environment:
ADDONS: ${addons}
ZEO_ADDRESS: zeoserver:8100
lb:
image: rancher/load-balancer-service
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true
io.rancher.community.plone: "true"
links:
- plone:plone
ports:
- ${http_port}:8080

View File

@ -0,0 +1,83 @@
.catalog:
name: "Plone"
version: "5.0-rancher1"
description: |
Plone CMS
uuid: plone-1
questions:
- variable: "version"
label: "Plone version"
description: "Select Plone version to run"
required: true
type: "enum"
options:
- 5.0
- 4.3
default: 5.0
- variable: "addons"
type: "string"
label: "Plone add-ons"
description: |
List of Plone Add-ons space separated
default: ""
- variable: "http_port"
type: "int"
label: "Port"
description: |
Plone HTTP public port to listen.
default: 8080
required: true
- variable: "host_label"
description: "Host label where to run Plone service."
label: "Host label:"
default: "plone=true"
type: "string"
- variable: "scale"
type: "int"
label: "Scale"
description: |
How many Plone instances to create
default: 2
required: true
- variable: volume_name
type: "string"
label: "Volume name"
description: |
Specifiy volume name for Plone data (filestorage, blobstorage)
default: plone-data
- variable: volume_driver
type: "string"
label: "Volume driver"
description: |
Specifiy docker volume driver to use
default: local
plone:
scale: ${scale}
health_check:
port: 8080
interval: 5000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000
request_line: GET /
zeoserver:
scale: 1
health_check:
port: 8100
interval: 5000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000
lb:
scale: 1
load_balancer_config:
haproxy_config: {}
health_check:
port: 42
interval: 2000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000

11
templates/plone/README.md Normal file
View File

@ -0,0 +1,11 @@
# Plone
This templates deploys a Plone server with all its companions (Zeoserver) to be able to run Plone on top of you Rancher infrastructure
# How to use it ?
Just create and launch the stack.
After that you can login with the regular user/password combination admin/admin.

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 13.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="158.253px" height="40.686px" viewBox="0 0 158.253 40.686" enable-background="new 0 0 158.253 40.686"
xml:space="preserve">
<g>
<path fill="#0095D3" d="M65.327,23.208h-6.589v11.388h-4.393V5.638h10.981c5.653,0,9.271,3.742,9.271,8.785
S70.979,23.208,65.327,23.208z M65.082,9.583h-6.345v9.639h6.345c3.05,0,5.124-1.749,5.124-4.799
C70.206,11.372,68.132,9.583,65.082,9.583z"/>
<path fill="#0095D3" d="M83.969,34.596c-3.904,0-5.652-2.644-5.652-5.693V5.638h4.148v23.021c0,1.587,0.567,2.399,2.235,2.399h1.83
v3.538H83.969z"/>
<path fill="#0095D3" d="M104.762,32.399c-1.344,1.384-3.377,2.44-6.184,2.44c-2.805,0-4.799-1.058-6.141-2.44
c-1.951-2.032-2.439-4.637-2.439-8.134c0-3.457,0.488-6.061,2.439-8.094c1.342-1.383,3.336-2.44,6.141-2.44
c2.807,0,4.84,1.059,6.184,2.44c1.951,2.033,2.439,4.637,2.439,8.094C107.203,27.763,106.713,30.366,104.762,32.399z
M101.629,18.613c-0.773-0.773-1.83-1.181-3.051-1.181c-1.219,0-2.236,0.406-3.01,1.181c-1.26,1.261-1.422,3.416-1.422,5.652
s0.162,4.393,1.422,5.653c0.773,0.771,1.791,1.22,3.01,1.22c1.221,0,2.277-0.447,3.051-1.22c1.262-1.262,1.424-3.417,1.424-5.653
S102.891,19.873,101.629,18.613z"/>
<path fill="#0095D3" d="M123.643,34.596V22.029c0-3.214-1.83-4.597-4.147-4.597s-4.271,1.423-4.271,4.597v12.566h-4.147v-20.62
h4.065v2.074c1.425-1.546,3.416-2.318,5.49-2.318c2.115,0,3.865,0.691,5.084,1.871c1.586,1.545,2.074,3.497,2.074,5.815v13.178
L123.643,34.596L123.643,34.596z"/>
<path fill="#0095D3" d="M135.772,25.486c0,3.537,1.871,5.774,5.246,5.774c2.317,0,3.539-0.649,5.004-2.115l2.643,2.481
c-2.115,2.114-4.107,3.213-7.727,3.213c-5.166,0-9.273-2.725-9.273-10.574c0-6.671,3.457-10.534,8.744-10.534
c5.531,0,8.744,4.067,8.744,9.925v1.83H135.772z M144.475,19.791c-0.65-1.545-2.113-2.604-4.066-2.604
c-1.951,0-3.457,1.059-4.107,2.604c-0.406,0.936-0.488,1.546-0.529,2.807h9.273C145.003,21.337,144.883,20.726,144.475,19.791z"/>
<circle fill="#0095D3" cx="17.815" cy="11.516" r="4.402"/>
<path fill="#0095D3" d="M31.167,20.311c0,2.433-1.969,4.401-4.403,4.401c-2.427,0-4.401-1.97-4.401-4.401
c0-2.433,1.975-4.401,4.401-4.401C29.2,15.909,31.167,17.879,31.167,20.311z"/>
<circle fill="#0095D3" cx="17.801" cy="29.131" r="4.402"/>
<g>
<path fill="#0095D3" d="M20.441-0.045C9.207-0.044,0.1,9.063,0.099,20.298C0.1,31.532,9.207,40.639,20.441,40.641
c11.235-0.002,20.341-9.107,20.343-20.343C40.783,9.063,31.677-0.044,20.441-0.045z M31.891,31.747
c-2.937,2.934-6.972,4.742-11.45,4.743c-4.478-0.001-8.513-1.811-11.45-4.743C6.058,28.81,4.25,24.775,4.249,20.298
c0.001-4.478,1.809-8.513,4.743-11.45c2.937-2.934,6.972-4.742,11.45-4.743c4.478,0.001,8.513,1.81,11.45,4.743
c2.934,2.938,4.742,6.973,4.743,11.45C36.633,24.775,34.825,28.81,31.891,31.747z"/>
</g>
<g>
<path fill="#0095D3" d="M153.985,9.95c-1.195,0-2.164,0.971-2.164,2.168c0.002,1.197,0.969,2.168,2.164,2.168
c1.199,0,2.172-0.971,2.172-2.168S155.184,9.95,153.985,9.95z M153.985,13.968c-1.021-0.002-1.846-0.827-1.846-1.85
c0.002-1.021,0.825-1.849,1.846-1.851c1.023,0.002,1.852,0.828,1.854,1.851C155.836,13.141,155.008,13.966,153.985,13.968z"/>
</g>
<g>
<path fill="#0095D3" d="M154.507,13.409l-0.54-1.08h-0.486v1.08h-0.389v-2.564h0.994c0.484,0,0.796,0.313,0.796,0.75
c0,0.367-0.224,0.602-0.513,0.68l0.592,1.136L154.507,13.409L154.507,13.409z M154.056,11.195h-0.575v0.803h0.575
c0.261,0,0.437-0.147,0.437-0.399S154.317,11.195,154.056,11.195z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,7 @@
name: "Plone"
description: |
Plone is the premier Python-based CMS
version: "5.0-rancher1"
maintainer: "Alin Voinea <alin.voinea@gmail.com>"
minimum_rancher_version: v1.0
category: CMS